Skip to content

.gitignore, reinclude rules, take 2

Nguyễn Thái Ngọc Duy git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4dir.c: fix match_pathname()dir.c+1 -12 replies
2/4dir.c: support tracing excludeDocumentation/git-check-ignore.txt Documentation/git.txt dir.c+26 -00 replies
3/4dir.c: support marking some patterns already matcheddir.c dir.h+77 -32 replies
4/4dir.c: don't exclude whole dir prematurelyDocumentation/gitignore.txt dir.c t/t3001-ls-files-others-exclude.sh +1 more+276 -100 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by.

Patchbrian m. carlsonMicha Wiedenmann
1/4
2/4
3/4
4/4Helped-by Helped-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] .gitignore, reinclude rules, take 2

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.

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
Signature · 1 line
2.7.0.377.g4cd97dd