Re: [PATCH 0/4] .gitignore, reinclude rules, take 2
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 15, 2016, 23:49 UTC
- Message-ID
- <xmqqegcdo7pt.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <1455527019-7787-1-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
Show 9 quoted lines
> Take one was bad and reverted in commit 8c72236. Take two provides a > more complete solution to the pair of rules > > exclude/this > !exclude/this/except/this > > 3/4 should do a better job at stopping regressions in take 1. 4/4 > provides the solution. I think I have tested (and wrote tests) for all > the cases I can imagine.
Thanks. The data structure used in 3/4 smells iffy from performance point of view--have you tried it on a large trees with deep nesting?
Show 16 quoted lines
> > Nguyễn Thái Ngọc Duy (4): > dir.c: fix match_pathname() > dir.c: support tracing exclude > dir.c: support marking some patterns already matched > dir.c: don't exclude whole dir prematurely > > Documentation/git-check-ignore.txt | 1 + > Documentation/git.txt | 5 + > Documentation/gitignore.txt | 17 ++- > dir.c | 204 +++++++++++++++++++++++++++- > dir.h | 3 + > t/t3001-ls-files-others-exclude.sh | 7 +- > t/t3007-ls-files-other-negative.sh (new +x) | 153 +++++++++++++++++++++ > 7 files changed, 378 insertions(+), 12 deletions(-) > create mode 100755 t/t3007-ls-files-other-negative.sh