From 0ad927e9e0013471cc752781f0c368f862934a44 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Fri, 7 Jul 2023 15:21:15 -0700 Subject: 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 --- list-objects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'list-objects.c') diff --git a/list-objects.c b/list-objects.c index eecca721ac..97dfef69b4 100644 --- a/list-objects.c +++ b/list-objects.c @@ -102,7 +102,7 @@ static void process_tree_contents(struct traversal_context *ctx, while (tree_entry(&desc, &entry)) { if (match != all_entries_interesting) { match = tree_entry_interesting(ctx->revs->repo->index, - &entry, base, 0, + &entry, base, &ctx->revs->diffopt.pathspec); if (match == all_entries_not_interesting) break; -- cgit v1.2.3