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

Re: [PATCH 2/2] object-file: retry linking file into place when occluding file vanishes

From
Jeff King <peff@peff.net>
Date
Jan 7, 2025, 01:25 UTC
Message-ID
<20250107012547.GA2363@coredump.intra.peff.net>
In-Reply-To
<Z3u6c1UVQyZuHLdk@pks.im>
On Mon, Jan 06, 2025 at 12:11:47PM +0100, Patrick Steinhardt wrote:
Show 20 quoted lines
> On Fri, Jan 03, 2025 at 02:59:42PM -0500, Jeff King wrote:
> > On Fri, Jan 03, 2025 at 02:40:58PM -0500, Jeff King wrote:
> > 
> > > I suspect there's a way to write this as a loop that would be more
> > > structured, but it would be a bigger refactor. Bonus points if it also
> > > get rid of the try_rename goto, too. ;)
> > > 
> > > I'm OK punting on that, though.
> > 
> > For fun, here's a version without any goto's in it, that should behave
> > the same. But it would be very easy to miss a case. So I don't know if
> > it is worth the regression risk, and I don't blame you if you delete
> > this message without looking carefully. ;)
> > 
> > Diff is kind of hard to read, so you may want to apply (on top of your
> > patches) and just look at the post-image.
> 
> Thanks. For now though I think I prefer to go with the simpler diff that
> uses goto, as it feels less risky close to v2.48. We can still refactor
> this in the next release cycle.
Sounds good. I looked over your v2 and it seems fine to me.
-Peff
Previous: Patrick SteinhardtNext: Junio C Hamano
Message 10 of 16 in “object-file: retry linking file into place when occluding file vanishes”
  1. 0/2 object-file: retry linking file into place when occluding file vanishesPatrick Steinhardt, Jan 3, 2025
  2. 1/2 object-file: rename variables in `check_collision()`Patrick Steinhardt, Jan 3, 2025
  3. Jeff KingJan 3, 2025
  4. 2/2 object-file: retry linking file into place when occluding file vanishesPatrick Steinhardt, Jan 3, 2025
  5. Junio C HamanoJan 3, 2025
  6. Jeff KingJan 3, 2025
  7. Jeff KingJan 3, 2025
  8. Junio C HamanoJan 3, 2025
  9. Patrick SteinhardtJan 6, 2025
  10. Jeff KingJan 7, 2025
  11. Junio C HamanoJan 3, 2025
  12. Patrick SteinhardtJan 6, 2025
  13. 0/3 object-file: retry linking file into place when occluding file vanishesPatrick Steinhardt, Jan 6, 2025
  14. 1/3 object-file: rename variables in `check_collision()`Patrick Steinhardt, Jan 6, 2025
  15. 2/3 object-file: don't special-case missing source file in collision checkPatrick Steinhardt, Jan 6, 2025
  16. 3/3 object-file: retry linking file into place when occluding file vanishesPatrick Steinhardt, Jan 6, 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.