Code

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)
commitb33a1b9fe794df53b449ffdbba0b39ef9e1772bf
tree04e58667e769f3539ab05ab9e26d6a615bf7ba6a
parent7ed863a85a6ce2c4ac4476848310b8f917ab41f9
url.c: simplify is_url()

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>
url.c