diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-08-02 09:37:23 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-08-02 09:37:23 -0700 |
commit | fea92e4cac30b1204ecc8dfd53675bbdd68611e0 (patch) | |
tree | a243ef2eea40ee245bf954c2a4105683029a855c /tree-diff.c | |
parent | ee48e70a829d1fa2da82f14787051ad8e7c45b71 (diff) | |
parent | 30c8c55cbfa6e4f81e4d73767294f50f5d9c7d10 (diff) | |
download | git-fea92e4cac30b1204ecc8dfd53675bbdd68611e0.tar.gz |
Merge branch 'jc/tree-walk-drop-base-offset'
Code simplification.
* jc/tree-walk-drop-base-offset:
tree-walk: drop unused base_offset from do_match()
tree-walk: lose base_offset that is never used in tree_entry_interesting
Diffstat (limited to 'tree-diff.c')
-rw-r--r-- | tree-diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tree-diff.c b/tree-diff.c index 966946848a..8fc159b86e 100644 --- a/tree-diff.c +++ b/tree-diff.c @@ -317,7 +317,7 @@ static void skip_uninteresting(struct tree_desc *t, struct strbuf *base, while (t->size) { match = tree_entry_interesting(opt->repo->index, &t->entry, - base, 0, &opt->pathspec); + base, &opt->pathspec); if (match) { if (match == all_entries_not_interesting) t->size = 0; |