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

Re: [PATCH] ref-filter: share bases and is_base_tips between formatting and sorting

From
Jeff King <peff@peff.net>
Date
Jan 19, 2025, 12:40 UTC
Message-ID
<20250119124010.GA1538605@coredump.intra.peff.net>
In-Reply-To
<cb3d6e8c-6c39-423c-935c-db0e8619c504@web.de>
On Sun, Jan 19, 2025 at 10:26:26AM +0100, René Scharfe wrote:
Show 5 quoted lines
> Am 18.01.25 um 18:11 schrieb René Scharfe:
> > I think moving to the right place in one step requires less churn.
> 
> On the other hand attribution would be more correct if we stacked your
> patches on my v1.  Just don't forget to free u.base.name. ;)

:) Yes, I actually had prepared them on top of yours yesterday before I saw your email. And I also double checked that you found the leak in my original. (I don't usually leak check explicitly, but wait for CI to do it, and I only run that when I do my daily integration).

I hadn't gotten around to writing commit messages, though. So I think we should go with what the v2 you posted, as it is already done. For attribution, I am happy enough with a Helped-by trailer. :)

I also like how you pulled the final cleanup into patch 3. It's probably reasonable to do, as the code is not doing anything useful. The only thing we lose is that the original had found all of the spots that needed to call _clear(), so if we later need it again we'd have to do so again. But maybe that hypothetical author would find the commit in the history.

  Actually, ls-remote does not appear to have called it. I didn't check
  but presumably "ls-remote --format=%(is-base:foo)" leaked.
-Peff
Previous: René ScharfeNext: René Scharfe
Message 15 of 19 in “Bug sorting git branch output by ahead-behind:HEAD”
  1. Ross GoldbergJan 5, 2025
  2. ref-filter: share bases and is_base_tips between formatting and sortingRené Scharfe, Jan 12, 2025
  3. Jeff KingJan 13, 2025
  4. Jeff KingJan 13, 2025
  5. Junio C HamanoJan 13, 2025
  6. René ScharfeJan 14, 2025
  7. Jeff KingJan 16, 2025
  8. Jeff KingJan 16, 2025
  9. Jeff KingJan 16, 2025
  10. Junio C HamanoJan 16, 2025
  11. René ScharfeJan 18, 2025
  12. René ScharfeJan 19, 2025
  13. René ScharfeJan 19, 2025
  14. René ScharfeJan 19, 2025
  15. Jeff KingJan 19, 2025
  16. René ScharfeJan 18, 2025
  17. 1/3 ref-filter: move ahead-behind bases into used_atomRené Scharfe, Jan 18, 2025
  18. 3/3 ref-filter: remove ref_format_clear()René Scharfe, Jan 18, 2025
  19. 2/3 ref-filter: move is-base tip to used_atomRené Scharfe, Jan 18, 2025

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.