author | Junio C Hamano <gitster@pobox.com> | |
Mon, 3 Oct 2011 17:56:42 +0000 (10:56 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 3 Oct 2011 17:56:42 +0000 (10:56 -0700) | ||
commit | b33a1b9fe794df53b449ffdbba0b39ef9e1772bf | |
tree | 04e58667e769f3539ab05ab9e26d6a615bf7ba6a | tree | snapshot |
parent | 7ed863a85a6ce2c4ac4476848310b8f917ab41f9 | commit | diff |
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>
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 | diff | blob | history |