Re: possible bug in git apply?
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Aug 5, 2007, 19:20 UTC
- Message-ID
- <alpine.LFD.0.999.0708051219440.5037@woody.linux-foundation.org>
- In-Reply-To
- <853ayxiznp.fsf@lola.goethe.zz>
On Sun, 5 Aug 2007, David Kastrup wrote:
> > But your proposed three passes won't work with a patch removing > "x/..." and creating "x" in its place, since "x/" gets only removed > in pass 3, and "x" needs to created in pass 2 already.
Yes, I was wrong. The current two passes are the right thing to do, and we should just always remove empty directories (and my patch was fine: we can leave them alone if it's a pure "modify file in place", but that's really the only case).
Linus