verify_filename(): flip order of checks
authorJeff King <redacted>
Fri, 26 May 2017 19:10:53 +0000 (15:10 -0400)
committerJunio C Hamano <redacted>
Mon, 29 May 2017 02:36:56 +0000 (11:36 +0900)
commit2cb47ab6958192a4b4b3b0616b2ab37f6680547f
tree498205c45cf22cadc8a99287cf497336f2273df4
parentc99eddd83519811d6604b4ce4a8d2001787a30d4
verify_filename(): flip order of checks

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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
setup.c
git clone https://git.99rst.org/PROJECT