summaryrefslogtreecommitdiff
path: root/t/t9601-cvsimport-vendor-branch.sh
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2014-08-30 11:46:54 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-09-02 10:36:42 -0700
commitbe0b3f822b6375028b25f62894056e63cb7c3ce4 (patch)
tree4a5b9b9a2bb6d472f4a5e57a402c27d3996910e9 /t/t9601-cvsimport-vendor-branch.sh
parentMerge git://github.com/git-l10n/git-po (diff)
downloadtgif-be0b3f822b6375028b25f62894056e63cb7c3ce4.tar.xz
connect: simplify check_ref() using skip_prefix() and starts_with()
Both callers of check_ref() pass in NUL-terminated strings for name. Remove the len parameter and then use skip_prefix() and starts_with() instead of memcmp() to check if it starts with certain strings. This gets rid of several magic string length constants and a strlen() call. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9601-cvsimport-vendor-branch.sh')
0 files changed, 0 insertions, 0 deletions