Skip to content

en/object-list-with-pathspec v4

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 Latest8 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8diff-no-index: use diff_tree_setup_paths()diff-no-index.c+5 -40 replies
2/8Introduce struct tree_pathspec_listbuiltin/diff-files.c builtin/diff.c builtin/log.c +7 more+59 -500 replies
3/8tree_entry_interesting(): remove dependency on struct diff_optionstree-diff.c+11 -173 replies
4/8tree-walk: move tree_entry_interesting() from tree-diff.ctree-diff.c tree-walk.c tree-walk.h+111 -1090 replies
5/8Add testcases showing how pathspecs are ignored with rev-list --objectst/t6000-rev-list-misc.sh+51 -01 reply
6/8Make rev-list --objects work together with pathspecslist-objects.c revision.c revision.h +1 more+34 -60 replies
7/8setup_tree_pathspec(): interpret '^' as negative pathspectree-walk.c tree-walk.h+31 -04 replies
8/8tree_entry_interesting(): support negative pathspect/t9999-test.sh tree-walk.c+75 -53 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/8] en/object-list-with-pathspec v4

OK it's good enough now. I no longer use struct exclude_list. Its name does not really match the semantics.

The last two patches implement tree exclusion and are not meant for submission to en/object-list-with-pathspec. I wanted to see if the new struct was extensible. And I need tree exclusion anyway in my narrow clone.

Elijah Newren (2):
Add testcases showing how pathspecs are ignored with rev-list --objects Make rev-list --objects work together with pathspecs

Nguyễn Thái Ngọc Duy (6):
diff-no-index: use diff_tree_setup_paths()
Introduce struct tree_pathspec_list tree_entry_interesting(): remove dependency on struct diff_options
tree-walk: move tree_entry_interesting() from tree-diff.c setup_tree_pathspec(): interpret '^' as negative pathspec tree_entry_interesting(): support negative pathspec

 builtin/diff-files.c     |    2 +-
 builtin/diff.c           |    4 +-
 builtin/log.c            |    2 +-
 diff-lib.c               |    2 +-
 diff-no-index.c          |   13 ++--
 diff.h                   |    4 +-
 list-objects.c           |   23 ++++++
 revision.c               |   14 ++--
 revision.h               |    3 +-
 t/t6000-rev-list-misc.sh |   51 ++++++++++++
 t/t9999-test.sh          |   44 +++++++++++
 tree-diff.c              |  157 ++-----------------------------------
 tree-walk.c              |  191 ++++++++++++++++++++++++++++++++++++++++++++++
 tree-walk.h              |   16 ++++
 14 files changed, 356 insertions(+), 170 deletions(-)
 create mode 100755 t/t6000-rev-list-misc.sh
 create mode 100755 t/t9999-test.sh