[PATCH 0/2] remove unused "base-offset" from tree-walk codepath
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 7, 2023, 22:21 UTC
- Message-ID
- <20230707222116.4129415-1-gitster@pobox.com>
Here are a few bonus patches I came up with while working on the "hmm, attr magic does not seem to work with pathspec patterns?" topic to remove a parameter that is passed around without getting any value other than 0 (hence nobody knows if the code is correct when the parameter is set to non-zero).
It turned out that they do not interact with the main topic in any way, so I made it into a separate and indenendent series.
Junio C Hamano (2):
tree-walk: lose base_offset that is never used in
tree_entry_interesting
tree-walk: drop unused base_offset from do_match()builtin/grep.c | 2 +- list-objects.c | 2 +- tree-diff.c | 2 +- tree-walk.c | 36 ++++++++++++++++++------------------ tree-walk.h | 2 +- tree.c | 2 +- 6 files changed, 23 insertions(+), 23 deletions(-)
-- 2.41.0-318-g061c58647e