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

Re: [PATCH v1 1/1] list-objects.c: traverse_trees_and_blobs: rename and tree-wide

From
Teng Long <dyroneteng@gmail.com>
Date
Aug 12, 2021, 08:05 UTC
Message-ID
<20210812080542.5469-1-dyroneteng@gmail.com>
In-Reply-To
<YRQg+IJ3cxb3Vk+c@coredump.intra.peff.net>
Show 7 quoted lines
>>FWIW, I was about reply and suggest the exact same name. :)
>>
>>As something internal to list-objects.c, I don't think it matters all
>>that much either way. The name "traverse_commit_list()" is IMHO more
>>likely to confuse. It is public within the project, and of course
>>traverses any type of object. So "traverse_objects()" or something may
>>be more accurate.

On the basis of understanding the relationship between git objects, `traverse_commit_list` is understandable, for me.

>>OTOH I do not find it all that confusing, and it may not be worth the
>>disruption to the code base.
Agree.

It’s interesting to read your reply, because of learning a lot of abbreviations.

Thank you.
Previous: Jeff KingNext: Teng Long
Message 5 of 11 in “traverse_trees_and_blobs: rename and tree-wide”
  1. 0/1 traverse_trees_and_blobs: rename and tree-wideTeng Long, Aug 11, 2021
  2. 1/1 list-objects.c: traverse_trees_and_blobs: rename and tree-wideTeng Long, Aug 11, 2021
  3. Junio C HamanoAug 11, 2021
  4. Jeff KingAug 11, 2021
  5. Teng LongAug 12, 2021
  6. Teng LongAug 12, 2021
  7. 0/1 list-objects.c: rename "traverse_trees_and_blobs" to "traverse_non_commits"Teng Long, Aug 12, 2021
  8. 1/1 list-objects.c: rename "traverse_trees_and_blobs" to "traverse_non_commits"Teng Long, Aug 12, 2021
  9. 0/1 list-objects.c: rename "traverse_trees_and_blobs" to "traverse_non_commits"Teng Long, Aug 12, 2021
  10. 1/1 list-objects.c: rename "traverse_trees_and_blobs" to "traverse_non_commits"Teng Long, Aug 12, 2021
  11. Jeff KingAug 12, 2021

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.