pathspec: save the non-wildcard length part
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sun, 18 Nov 2012 09:13:06 +0000 (16:13 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 Nov 2012 21:08:28 +0000 (13:08 -0800)
commit170260ae90cb6a0fec476e7d970e3ac3e81e98f5
tree0c342d4b08c483cf1035c1945113a96ab8057f14
parentf3828dc0669826660f5034a468913115675ff501
pathspec: save the non-wildcard length part

We mark pathspec with wildcards with the field use_wildcard. We
could do better by saving the length of the non-wildcard part, which
can be used for optimizations such as f9f6e2c (exclude: do strcmp as
much as possible before fnmatch - 2012-06-07).

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/ls-files.c
builtin/ls-tree.c
cache.h
dir.c
tree-walk.c