summaryrefslogtreecommitdiff
path: root/levenshtein.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-06-01 12:22:09 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-06-03 16:08:25 -0700
commit93921b07e985de38f7af6689d81e5c7dfb3f8aa0 (patch)
tree09fdb1fb43f1ec6d80bc8b8bc83be99d8dc276b2 /levenshtein.h
parentls-files -i: pay attention to exclusion of leading paths (diff)
downloadtgif-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 'levenshtein.h')
0 files changed, 0 insertions, 0 deletions