diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-07-07 15:21:15 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-07-07 15:27:28 -0700 |
commit | 0ad927e9e0013471cc752781f0c368f862934a44 (patch) | |
tree | c11565bf069a6b54a84028aa125b0f59e39fe71c /tree-diff.c | |
parent | fb7d80edcae482f4fa5d4be0227dc3054734e5f3 (diff) | |
download | git-0ad927e9e0013471cc752781f0c368f862934a44.tar.gz |
tree-walk: lose base_offset that is never used in tree_entry_interesting
The tree_entry_interesting() function takes base_offset, allowing
its callers to potentially pass a non-zero number to skip the early
part of the path string.
The feature is never exercised and we do not even know what bugs are
lurking there, as all callers pass 0 to the parameter.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 20bb15f38d..a01f36f685 100644 --- a/tree-diff.c +++ b/tree-diff.c @@ -316,7 +316,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; |