Re: [BUG] Symbolic links break "git fast-export"?
- From
Jeff King <peff@peff.net>
- Date
- Jun 24, 2019, 18:58 UTC
- Message-ID
- <20190624185835.GA11720@sigill.intra.peff.net>
- In-Reply-To
- <CABPp-BE8um5g98jqWawsuG2dAvO6AZcR54vrRzAkJbq+L3K6Zw@mail.gmail.com>
On Mon, Jun 24, 2019 at 06:33:38AM -0600, Elijah Newren wrote:
Show 8 quoted lines
> We should probably also make a corresponding improvement to
> fast-import; it also makes some attempts to be smart about handling
> order of modifies and deletes, but misses this case. See commit
> 253fb5f8897d ("fast-import: Improve robustness when D->F changes
> provided in wrong order", 2010-07-09). It'd be nice if fast-import
> could go through the list of changes, apply the deletes first, then
> the modifies -- although I'm not sure where renames go in the order
> off the top of my head.You'd have to split the renames into separate delete/adds, since they can have a circular dependency. E.g. renaming "foo" to "bar" and "bar" to "foo", you must remove "foo" and "bar" both, and then add them back in.
-Peff