diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-06-01 12:22:09 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-06-03 16:08:25 -0700 |
commit | 93921b07e985de38f7af6689d81e5c7dfb3f8aa0 (patch) | |
tree | 09fdb1fb43f1ec6d80bc8b8bc83be99d8dc276b2 /fsck.c | |
parent | ls-files -i: pay attention to exclusion of leading paths (diff) | |
download | tgif-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 'fsck.c')
0 files changed, 0 insertions, 0 deletions