git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* No way to resolve git am conflicts.
@ 2011-01-08 13:11 Stephen Kelly
  2011-01-08 16:36 ` Jonathan Nieder
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Kelly @ 2011-01-08 13:11 UTC (permalink / raw)
  To: git


kde-devel@bishop:~/dev/src/git{master}$ curl -o the.patch 
http://download.gmane.org/gmane.comp.version-control.git/164809/164810 && 
git am the.patch
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
                                 Dload  Upload   Total   Spent    Left  
Speed
100 10438    0 10438    0     0  12046      0 --:--:-- --:--:-- --:--:-- 
13451
Applying: Introduce new configuation option to override committer 
information
error: patch failed: builtin/commit.c:1352
error: builtin/commit.c: patch does not apply
Patch failed at 0001 Introduce new configuation option to override committer 
information
When you have resolved this problem run "git am --resolved".
If you would prefer to skip this patch, instead run "git am --skip".
To restore the original branch and stop patching run "git am --abort".
Qt( 4.7 ) KDE ( 4.6 ) 
kde-devel@bishop:~/dev/src/git{master}$ git diff
Qt( 4.7 ) KDE ( 4.6 ) 
kde-devel@bishop:~/dev/src/git{master}$ git status
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       p.patch
#       the.patch
nothing added to commit but untracked files present (use "git add" to track)
Qt( 4.7 ) KDE ( 4.6 ) 
kde-devel@bishop:~/dev/src/git{master}$ 

As git status doesn't tell me what the conflict is, I can't resolve it.

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

* Re: No way to resolve git am conflicts.
  2011-01-08 13:11 No way to resolve git am conflicts Stephen Kelly
@ 2011-01-08 16:36 ` Jonathan Nieder
  2011-01-08 19:21   ` Stephen Kelly
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Nieder @ 2011-01-08 16:36 UTC (permalink / raw)
  To: Stephen Kelly; +Cc: git

Stephen Kelly wrote:

> git am the.patch
[...]
> Applying: Introduce new configuation option to override committer 
> information
> error: patch failed: builtin/commit.c:1352
> error: builtin/commit.c: patch does not apply
> Patch failed at 0001 Introduce new configuation option to override committer 
> information
> When you have resolved this problem run "git am --resolved".
> If you would prefer to skip this patch, instead run "git am --skip".
> To restore the original branch and stop patching run "git am --abort".
> $ git diff
[...]
> As git status doesn't tell me what the conflict is, I can't resolve it.

Have you tried "git am -3" or "git am --reject" (after "git am
--abort")?

I agree that the hints printed are suboptimal in this case.  Please
feel free to make them better if you have time for it. :)

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

* Re: No way to resolve git am conflicts.
  2011-01-08 16:36 ` Jonathan Nieder
@ 2011-01-08 19:21   ` Stephen Kelly
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Kelly @ 2011-01-08 19:21 UTC (permalink / raw)
  To: git

Jonathan Nieder wrote:

> Stephen Kelly wrote:
> 
>> git am the.patch
> [...]
>> Applying: Introduce new configuation option to override committer
>> information
>> error: patch failed: builtin/commit.c:1352
>> error: builtin/commit.c: patch does not apply
>> Patch failed at 0001 Introduce new configuation option to override
>> committer information
>> When you have resolved this problem run "git am --resolved".
>> If you would prefer to skip this patch, instead run "git am --skip".
>> To restore the original branch and stop patching run "git am --abort".
>> $ git diff
> [...]
>> As git status doesn't tell me what the conflict is, I can't resolve it.
> 
> Have you tried "git am -3" or "git am --reject" (after "git am
> --abort")?

git am -3 worked, thanks.

> 
> I agree that the hints printed are suboptimal in this case.  Please
> feel free to make them better if you have time for it. :)

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

end of thread, other threads:[~2011-01-08 19:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-08 13:11 No way to resolve git am conflicts Stephen Kelly
2011-01-08 16:36 ` Jonathan Nieder
2011-01-08 19:21   ` Stephen Kelly

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).