git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-am doesn't apply the rest of the email after a partial patch fail?
@ 2013-04-07 18:00 Constantine A. Murenin
  2013-04-07 21:23 ` Constantine A. Murenin
  2013-04-08 17:49 ` Junio C Hamano
  0 siblings, 2 replies; 5+ messages in thread
From: Constantine A. Murenin @ 2013-04-07 18:00 UTC (permalink / raw)
  To: git

Hi,

I'm trying to convert/rebase about 40 local patches from an old
mercurial fork of OpenGrok (upstream used to use hg), to the new git
repository (upstream has recently switched to github).

What I decided to do is convert my old mercurial repo to git (by
pushing with py-hg-git to a git repository, and then checking out with
git), and use `git format-patch` from an old .hg-git.git repository,
and then use `git am` on the new (upstream git) repository of the
`format-patch` mails from an old one.

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,
and the subsequent patch/email now doesn't want to apply either, since
all of the previous patch/email is missing, other than the manually
added changes.

What gives?  Does `git am --resolve` discard the rest of the mail, if
any patching errors occur?  Is one supposed to apply the whole
`format-patch` email manually when `git am` does encounter some
problem with only some minor parts of that email?

% git --version; uname -rms
git version 1.7.6
OpenBSD 5.2 amd64

C.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-09 18:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-07 18:00 git-am doesn't apply the rest of the email after a partial patch fail? Constantine A. Murenin
2013-04-07 21:23 ` Constantine A. Murenin
2013-04-08 17:49 ` Junio C Hamano
2013-04-09 18:34   ` Constantine A. Murenin
2013-04-09 18:57     ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).