Re: [WIP PATCH] fast-export: emit deletions first
- From
Jeff King <peff@peff.net>
- Date
- Apr 7, 2026, 04:26 UTC
- Message-ID
- <20260407042624.GB627864@coredump.intra.peff.net>
- In-Reply-To
- <k3qg4jodn425cjvorvdl4j24ik7c4jwmwudwsowe4doth7devn@f5xbrskansmj>
On Mon, Apr 06, 2026 at 09:12:19PM -0400, Raymond E. Pasco wrote:
Show 10 quoted lines
> On 26/04/06 10:15AM, Junio C Hamano wrote: > > In any case, it is a bit surprising that fast-export survived this > > long without having encountering the problem you are solving. I > > wonder if fast-import handles such an output with some smart to > > avoid the issue? > > I was surprised too. The case where this was encountered was a repo > that had a directory symlink, and promoted it to a real directory, > but the symlink turned out to be a red herring, it's purely path > prefixes.
That's the original case from 2015, too. Which I guess is not too surprising, since it's probably a more common conversion than a true directory-into-file. There was a patch with a test provided in one of the threads I linked earlier, in case that helps, but it is pretty easy to write a new one.
-Peff