Re: Why doesn't git-apply remove empty file
- From
Stephan Beyer <s-beyer@gmx.net>
- Date
- Aug 14, 2008, 21:10 UTC
- Message-ID
- <20080814211034.GE7138@leksak.fem-net>
- In-Reply-To
- <20080814205447.GC25469@sigill.intra.peff.net>
Hi,
Jeff King wrote:
Show 10 quoted lines
> On Thu, Aug 14, 2008 at 10:21:59PM +0200, Stephan Beyer wrote: > > > Instead of generating reject files it puts conflict markers into the file. > > (If no context matches at all, then perhaps just insert them at the lines > > that the hunk header says.) > > And then declaring the files as "unmerged", so that you can see it in > > git status. > > I use "git am -3" for that. Then you get conflict markers, or you can > use git-mergetool.
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. Then git am -3 won't help, too. (Yes, in this example fetching the branch may help, but there may be other examples.)
Regards, Stephan
-- Stephan Beyer <s-beyer@gmx.net>, PGP 0x6EDDD207FCC5040F