summaryrefslogtreecommitdiff
path: root/t/t9800-git-p4-basic.sh
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2014-12-10 05:40:36 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-12-10 09:40:33 -0800
commitea417833ea9a07d7b8d568358ff20f57851cb26e (patch)
treec3bdd5a211743f6cf8ab88bbdbeff669a3bd9c83 /t/t9800-git-p4-basic.sh
parentread_packed_refs: pass strbuf to parse_ref_line (diff)
downloadtgif-ea417833ea9a07d7b8d568358ff20f57851cb26e.tar.xz
read_packed_refs: use skip_prefix instead of static array
We want to recognize the packed-refs header and skip to the "traits" part of the line. We currently do it by feeding sizeof() a static const array to strncmp. However, it's a bit simpler to just skip_prefix, which expresses the intention more directly, and without remembering to account for the NUL-terminator in each sizeof() call. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9800-git-p4-basic.sh')
0 files changed, 0 insertions, 0 deletions