diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-01-15 02:29:28 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-01-15 02:29:28 +0300 |
commit | d6f05a435f9c89f8c9860c7af692942768d81584 (patch) | |
tree | 7b43bdb292f9cda801778647a67ddc2662504067 /list-objects.c | |
parent | c333fe73682b182d6872f9e5b454c2899c6203ab (diff) | |
parent | 5a0b97b34c51eaddf39624857f1ac0e7df4ca2e3 (diff) |
Merge branch 'nd/attr-pathspec-in-tree-walk'
The traversal over tree objects has learned to honor
":(attr:label)" pathspec match, which has been implemented only for
enumerating paths on the filesystem.
* nd/attr-pathspec-in-tree-walk:
tree-walk: support :(attr) matching
dir.c: move, rename and export match_attrs()
pathspec.h: clean up "extern" in function declarations
tree-walk.c: make tree_entry_interesting() take an index
tree.c: make read_tree*() take 'struct repository *'
Diffstat (limited to 'list-objects.c')
-rw-r--r-- | list-objects.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/list-objects.c b/list-objects.c index cf7f25bed3..4e2789768d 100644 --- a/list-objects.c +++ b/list-objects.c @@ -114,7 +114,8 @@ static void process_tree_contents(struct traversal_context *ctx, while (tree_entry(&desc, &entry)) { if (match != all_entries_interesting) { - match = tree_entry_interesting(&entry, base, 0, + match = tree_entry_interesting(ctx->revs->repo->index, + &entry, base, 0, &ctx->revs->diffopt.pathspec); if (match == all_entries_not_interesting) break; |