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

[PATCH v2 0/1] builtin/pack-objects.c: avoid iterating all refs

From
Jacob Vosmaer <jacob@gitlab.com>
Date
Jan 20, 2021, 12:45 UTC
Message-ID
<20210120124514.49737-1-jacob@gitlab.com>

I have updated the patch with more background information in the commit message, and I have cleaned up the add_ref_tag iterator callback a bit. I also switched to for_each_tag_ref.

On the previous version of the patch there was some discussion about whether we can use for_each_tag_ref in combination with peel_ref. It turns out we can, and we were already doing it in the same file: search for mark_tagged to see what I mean.

Jacob Vosmaer (1):
  builtin/pack-objects.c: avoid iterating all refs
 builtin/pack-objects.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
-- 
2.30.0
Next: Jacob Vosmaer
Message 1 of 11 in “builtin/pack-objects.c: avoid iterating all refs”
  1. 0/1 builtin/pack-objects.c: avoid iterating all refsJacob Vosmaer, Jan 20, 2021
  2. 1/1 builtin/pack-objects.c: avoid iterating all refsJacob Vosmaer, Jan 20, 2021
  3. Taylor BlauJan 20, 2021
  4. Jeff KingJan 20, 2021
  5. Taylor BlauJan 20, 2021
  6. Jacob VosmaerJan 20, 2021
  7. Jeff KingJan 20, 2021
  8. Jacob VosmaerJan 20, 2021
  9. Taylor BlauJan 20, 2021
  10. Jeff KingJan 21, 2021
  11. Jacob VosmaerJan 22, 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.