Re: Why doesn't git-apply remove empty file
- From
Jeff King <peff@peff.net>
- Date
- Aug 15, 2008, 04:08 UTC
- Message-ID
- <20080815040834.GA3732@sigill.intra.peff.net>
- In-Reply-To
- <20080814211034.GE7138@leksak.fem-net>
On Thu, Aug 14, 2008 at 11:10:34PM +0200, Stephan Beyer wrote:
> git am -3 looks for the base blob in the "index" line of the patch. > > Now imagine you do not have this blob in git, e.g. because you've not > fetched some large side branch from another repo.
Ah, you're right. That is much trickier (though it can still be used in some cases, depending on how broken the patch is).
> Then git am -3 won't help, too. (Yes, in this example fetching the > branch may help, but there may be other examples.)
An easy example that breaks: the patch submitter didn't use git at all, so there is no branch to fetch from. :)
-Peff