git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[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
Next: Junio C Hamano
Message 1 of 3 in “remove unused "base-offset" from tree-walk codepath”
  1. 0/2 remove unused "base-offset" from tree-walk codepathJunio C Hamano, Jul 7, 2023
  2. 1/2 tree-walk: lose base_offset that is never used in tree_entry_interestingJunio C Hamano, Jul 7, 2023
  3. 2/2 tree-walk: drop unused base_offset from do_match()Junio C Hamano, Jul 7, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.