aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-06-01 12:22:09 -0700
committerJunio C Hamano <gitster@pobox.com>2012-06-03 16:08:25 -0700
commit93921b07e985de38f7af6689d81e5c7dfb3f8aa0 (patch)
tree09fdb1fb43f1ec6d80bc8b8bc83be99d8dc276b2 /builtin
parenteb41775ecc031cd8e38aebbd26826d74922a0db9 (diff)
downloadgit-93921b07e985de38f7af6689d81e5c7dfb3f8aa0.tar.gz
git-93921b07e985de38f7af6689d81e5c7dfb3f8aa0.tar.xz
ls-files -i: micro-optimize path_excluded()
As we know a caller that does not recurse is calling us in the index order, we can remember the last directory we found to be excluded and see if the path we are looking at is still inside it, in which case we can just answer that it is excluded. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
0 files changed, 0 insertions, 0 deletions