]> git.ipfire.org Git - thirdparty/git.git/commit - tree.c
tree-walk: lose base_offset that is never used in tree_entry_interesting
authorJunio C Hamano <gitster@pobox.com>
Fri, 7 Jul 2023 22:21:15 +0000 (15:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Jul 2023 22:27:28 +0000 (15:27 -0700)
commit0ad927e9e0013471cc752781f0c368f862934a44
treec11565bf069a6b54a84028aa125b0f59e39fe71c
parentfb7d80edcae482f4fa5d4be0227dc3054734e5f3
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>
builtin/grep.c
list-objects.c
tree-diff.c
tree-walk.c
tree-walk.h
tree.c