url.c: simplify is_url()
authorJunio C Hamano <gitster@pobox.com>
Mon, 3 Oct 2011 17:56:42 +0000 (10:56 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Oct 2011 17:56:42 +0000 (10:56 -0700)
The function was implemented in an overly complicated way.
Rewrite it to check from left to right in a single pass.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found