Skip to content

Negation magic pathspec

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 Latest6 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Recognize magic pathspec as filenamessetup.c+7 -93 replies
2/6Replace has_wildcard with PATHSPEC_NOGLOBbuiltin/ls-files.c builtin/ls-tree.c cache.h +3 more+33 -300 replies
3/6Convert prefix_pathspec() to produce struct pathspec_itemcache.h setup.c+18 -50 replies
4/6Implement parse_pathspec()cache.h dir.c setup.c+68 -230 replies
5/6Convert simple init_pathspec() cases to parse_pathspec()builtin/grep.c builtin/ls-tree.c builtin/reset.c +1 more+8 -91 reply
6/6Implement negative pathspecDocumentation/glossary-content.txt cache.h dir.c +2 more+42 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] Negation magic pathspec

After the last round toying with .gitignore mechanism as a way to exclude paths, I have finally got back to the negative pathspec.

I'm still struggling with read_directory() rewrite so that struct pathspec can be used throughout git, but now realized we can at least enable magic for certain commands and die() on those that don't. This may help move magic pathspec patches forward.

The nice thing about this series is that negative pathspec patch is small and simple, much less headache to review than the previous version (and as a consequence, not as powerful).

So here it is to gather comments whether we should go this way. Very much WIP, I have not even run "make test".

Nguyễn Thái Ngọc Duy (6):
Recognize magic pathspec as filenames
Replace has_wildcard with PATHSPEC_NOGLOB Convert prefix_pathspec() to produce struct pathspec_item Implement parse_pathspec()
Convert simple init_pathspec() cases to parse_pathspec() Implement negative pathspec

 Documentation/glossary-content.txt |    8 ++--
 builtin/grep.c                     |    4 +-
 builtin/ls-files.c                 |    2 +-
 builtin/ls-tree.c                  |    6 +-
 builtin/reset.c                    |    2 +-
 cache.h                            |   29 +++++++++++-
 dir.c                              |   85 +++++++++++++++++++++++++++--------
 revision.c                         |    9 ++--
 setup.c                            |   56 +++++++++++-------------
 tree-walk.c                        |   44 ++++++++++++++++---
 10 files changed, 169 insertions(+), 76 deletions(-)
Signature · 1 line
1.7.3.1.256.g2539c.dirty