Re: git-am doesn't apply the rest of the email after a partial patch fail?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Constantine A. Murenin" <mureninc@xxxxxxxxx> writes:

> However, what I've faced with, is that when a conflict happens, and I
> resolve, and do `git add`, and `git am --resolved`, then the rest of
> the `format-patch` email where the conflict has occurred is discarded,

That is unusual.  Are you using any other options when running "git
am"?  You said `git add`, but what did you add?

By default, its patch application is all-or-none, so when it stops,
saying "I cannot apply this patch---please help me with it", it
expects that all the changes the email wanted to give you has been
applied by you to your working tree, perhaps using GNU patch or "git
apply --reject", followed by manual editing, and to your index using
"git add", when you run "git am --resolved".  Not just the file (or
hunk) it detected issues with.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]