author | Michael Haggerty <mhagger@alum.mit.edu> | |
Thu, 15 Sep 2011 21:10:25 +0000 (23:10 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 5 Oct 2011 20:45:29 +0000 (13:45 -0700) | ||
commit | 8d9c50105f908b2adde4b7c77537cf95f19cd893 | |
tree | 91e783b9cca8d2bac7913057b9caf28c948822e1 | tree | snapshot |
parent | 9224b73be03845a99f8171c57dc282f806b70f4c | commit | diff |
Change check_ref_format() to take a flags argument
Change check_ref_format() to take a flags argument that indicates what
is acceptable in the reference name (analogous to "git
check-ref-format"'s "--allow-onelevel" and "--refspec-pattern"). This
is more convenient for callers and also fixes a failure in the test
suite (and likely elsewhere in the code) by enabling "onelevel" and
"refspec-pattern" to be allowed independently of each other.
Also rename check_ref_format() to check_refname_format() to make it
obvious that it deals with refnames rather than references themselves.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Change check_ref_format() to take a flags argument that indicates what
is acceptable in the reference name (analogous to "git
check-ref-format"'s "--allow-onelevel" and "--refspec-pattern"). This
is more convenient for callers and also fixes a failure in the test
suite (and likely elsewhere in the code) by enabling "onelevel" and
"refspec-pattern" to be allowed independently of each other.
Also rename check_ref_format() to check_refname_format() to make it
obvious that it deals with refnames rather than references themselves.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
20 files changed:
builtin/check-ref-format.c | diff | blob | history | |
builtin/checkout.c | diff | blob | history | |
builtin/fetch-pack.c | diff | blob | history | |
builtin/receive-pack.c | diff | blob | history | |
builtin/replace.c | diff | blob | history | |
builtin/show-ref.c | diff | blob | history | |
builtin/tag.c | diff | blob | history | |
connect.c | diff | blob | history | |
environment.c | diff | blob | history | |
fast-import.c | diff | blob | history | |
git_remote_helpers/git/git.py | diff | blob | history | |
notes-merge.c | diff | blob | history | |
pack-refs.c | diff | blob | history | |
refs.c | diff | blob | history | |
refs.h | diff | blob | history | |
remote.c | diff | blob | history | |
sha1_name.c | diff | blob | history | |
t/t1402-check-ref-format.sh | diff | blob | history | |
transport.c | diff | blob | history | |
walker.c | diff | blob | history |