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

Re: [WIP PATCH] fast-export: emit deletions first

From
Jeff King <peff@peff.net>
Date
Apr 7, 2026, 04:24 UTC
Message-ID
<20260407042432.GA627864@coredump.intra.peff.net>
In-Reply-To
<CABPp-BHhXQc-s8rF1n+AQ0VodX2KuiahcAOcg2msR1eZrUSsCA@mail.gmail.com>
On Mon, Apr 06, 2026 at 02:44:05PM -0700, Elijah Newren wrote:
Show 18 quoted lines
> > It's also possible that sorting should be the responsibility of the
> > receiver. I.e., should fast-import see:
> >
> >   M 100644 :blob_label a/b
> >   D a
> >
> > and figure it out? Or maybe we want both (to help other consumers of
> > fast-export, but also to help fast-import when consuming output of other
> > sources).
> 
> Would re-ordering on fast-import's side introduce bugs or violate
> user's assumptions?  Right now, fast-import has no check to prevent
> more than one command for the same pathname being given, and has a
> last-entry-wins ruling.  Thus filemodify PATH followed by filedelete
> PATH gives different results than reversing the order.  Most probably
> wouldn't care or want to ever do that, but I could see it as a way of
> allowing you to change your mind in the stream and override an earlier
> directive you sent.

Hmm, good point. It probably is better to leave the reading side as-is, then, to be on the safe side.

-Peff
Previous: Elijah NewrenNext: Raymond E. Pasco
Message 5 of 8 in “fast-export: emit deletions first”
  1. fast-export: emit deletions firstRaymond E. Pasco, Apr 6, 2026
  2. Junio C HamanoApr 6, 2026
  3. Jeff KingApr 6, 2026
  4. Elijah NewrenApr 6, 2026
  5. Jeff KingApr 7, 2026
  6. Raymond E. PascoApr 7, 2026
  7. Raymond E. PascoApr 7, 2026
  8. Jeff KingApr 7, 2026

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.