summaryrefslogtreecommitdiff
path: root/builtin/fetch-pack.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2011-09-15 21:10:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-10-05 20:45:29 (GMT)
commit9224b73be03845a99f8171c57dc282f806b70f4c (patch)
treef34327c98e380f189af8a00e4046faccc09d0c27 /builtin/fetch-pack.c
parente4ed6105ec4a8507d4bd9f6355647fa911e4731f (diff)
downloadgit-9224b73be03845a99f8171c57dc282f806b70f4c.zip
git-9224b73be03845a99f8171c57dc282f806b70f4c.tar.gz
git-9224b73be03845a99f8171c57dc282f806b70f4c.tar.bz2
Change bad_ref_char() to return a boolean value
Previously most bad characters were indicated by returning 1, but "*" was special-cased to return 2 instead of 1. One caller examined the return value to see whether the special case occurred. But it is easier (to document and understand) for bad_ref_char() simply to return a boolean value, treating "*" like any other bad character. Special-case the handling of "*" (which only occurs in very specific circumstances) at the caller. The resulting calling code thereby also becomes more transparent. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fetch-pack.c')
0 files changed, 0 insertions, 0 deletions