summaryrefslogtreecommitdiff
path: root/sha1-array.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-05-26 15:10:53 -0400
committerJunio C Hamano <gitster@pobox.com>2017-05-29 11:36:56 +0900
commit2cb47ab6958192a4b4b3b0616b2ab37f6680547f (patch)
tree498205c45cf22cadc8a99287cf497336f2273df4 /sha1-array.c
parentc99eddd83519811d6604b4ce4a8d2001787a30d4 (diff)
downloadgit-2cb47ab6958192a4b4b3b0616b2ab37f6680547f.tar.gz
verify_filename(): flip order of checksjk/pathspec-magic-disambiguation
The looks_like_pathspec() check is much cheaper than check_filename(), which actually stats the file. Since either is sufficient for our return value, we should do the cheaper one first, potentially short-circuiting the other. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1-array.c')
0 files changed, 0 insertions, 0 deletions