aboutsummaryrefslogtreecommitdiff
path: root/xdiff-interface.c
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2017-07-22 06:39:12 +0200
committerJunio C Hamano <gitster@pobox.com>2017-07-24 14:48:59 -0700
commit7a40a95eb4f79517750eb2bcd81342c25c6db406 (patch)
tree04d1314593637570508b24d8c07529c4683bfaf9 /xdiff-interface.c
parent95d67879735cfecfdd85f89e59d993c5b4de8835 (diff)
downloadgit-7a40a95eb4f79517750eb2bcd81342c25c6db406.tar.gz
git-7a40a95eb4f79517750eb2bcd81342c25c6db406.tar.xz
refs: use skip_prefix() in ref_is_hidden()
This is shorter, makes the logic a bit easier to follow, and is perhaps a bit faster too. The logic is to make the final decision only when "subject" is there, its early part matches "match", and the match is at the slash boundary (or the whole thing). Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'xdiff-interface.c')
0 files changed, 0 insertions, 0 deletions