Skip to content

support --exclude for diff/log commands

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 Latest5 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tree-walk: support negative pathspeccache.h tree-walk.c+29 -90 replies
2/5match_pathspec_depth: support negative pathspecdir.c+5 -00 replies
3/5revision.c: get rid of struct rev_info.prune_databuiltin/add.c builtin/diff.c builtin/fast-export.c +4 more+21 -232 replies
4/5diff: refactor init/release APIDocumentation/technical/api-diff.txt builtin/blame.c builtin/merge.c +9 more+35 -510 replies
5/5diff: support --excludediff.c diff.h+41 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [WIP PATCH 0/5] support --exclude for diff/log commands

This is not really ready for review or use, but I'd like to have feedback if any, where this series is heading because it requires some code refactor in diff/rev machinery. It does not feel absolutely right to me.

On the other hand, if we go with ':' as a mark of special pathspecs, then

- ":/" mark pathspecs relative to worktree root
- ":!" may mark negative pathspecs

Less changes in diff/rev this way.

Nguyễn Thái Ngọc Duy (5):
tree-walk: support negative pathspec
match_pathspec_depth: support negative pathspec

match_pathspec_depth needs work. tree_entry_interesting() can use some optimization, but leave it for now.

revision.c: get rid of struct rev_info.prune_data
diff: refactor init/release API

These two facilitate post pathspec manipulation to transform --exclude to pathspecs with to_exclude = 1.

  diff: support --exclude
 Documentation/technical/api-diff.txt |    2 +-
 builtin/add.c                        |    3 +-
 builtin/blame.c                      |   22 +++++----------
 builtin/diff.c                       |    6 ++--
 builtin/fast-export.c                |    2 +-
 builtin/merge.c                      |    2 +-
 builtin/reset.c                      |    4 +-
 cache.h                              |    1 +
 diff-lib.c                           |    6 ++--
 diff-no-index.c                      |    6 ++--
 diff.c                               |   49 ++++++++++++++++++++++++++++++++-
 diff.h                               |    6 ++--
 dir.c                                |    5 +++
 merge-recursive.c                    |    2 +-
 notes-merge.c                        |    8 +++---
 patch-ids.c                          |    2 +-
 revision.c                           |   22 ++++++++-------
 revision.h                           |    1 -
 tree-diff.c                          |   21 +++------------
 tree-walk.c                          |   37 +++++++++++++++++++------
 wt-status.c                          |    6 +---
 21 files changed, 130 insertions(+), 83 deletions(-)
Signature · 1 line
1.7.3.1.256.g2539c.dirty