mbox series

[0/2] remove unused "base-offset" from tree-walk codepath

Message ID 20230707222116.4129415-1-gitster@pobox.com (mailing list archive)
Headers show
Series remove unused "base-offset" from tree-walk codepath | expand

Message

Junio C Hamano July 7, 2023, 10:21 p.m. UTC
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(-)