git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* pitfall with empty commits during git rebase
@ 2014-07-11 10:15 Olaf Hering
  2014-07-11 17:58 ` Keller, Jacob E
  2014-07-11 18:25 ` Jeff King
  0 siblings, 2 replies; 3+ messages in thread
From: Olaf Hering @ 2014-07-11 10:15 UTC (permalink / raw)
  To: git


There is an incorrect message when doing "git rebase -i remote/branch".
I have it only in german, see below. what happend is:

#01 make changes on another host
#02 copy patchfile to localhost
#03 apply patchfile
#04 git commit -avs # create commit#1
#05 sleep 123456
#06 make different changes on another host
#07 copy patchfile to localhost
#08 git show | patch -Rp1
#09 git commit -avs # create commit#2
#10 apply patchfile
#11 git commit -avs # create commit#3
#12 git rebase -i remote/branch
     pick commit#1 msg
     f    commit#2 msg
     f    commit#3 msg

....
".git/rebase-merge/git-rebase-todo" 21L, 707C geschrieben
Sie fragten den jüngsten Commit nachzubessern, aber das würde diesen leer
machen. Sie können Ihr Kommando mit --allow-empty wiederholen, oder diesen
Commit mit "git reset HEAD^" vollständig entfernen.
Rebase im Gange; auf c105589
Sie sind gerade beim Rebase von Branch 'mybranch' auf 'c105589'.

Keine Änderungen

Could not apply 6c5842320acc797d395afb5cdf373c2bfaebfa34... revert
....

Its not clear what '--allow-empty' refers to, git rebase does not seem to
understand this option.

I should have skipped step #09 to avoid the trouble.
git version is 2.0.1. Please adjust the error msg above.


Olaf

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

* Re: pitfall with empty commits during git rebase
  2014-07-11 10:15 pitfall with empty commits during git rebase Olaf Hering
@ 2014-07-11 17:58 ` Keller, Jacob E
  2014-07-11 18:25 ` Jeff King
  1 sibling, 0 replies; 3+ messages in thread
From: Keller, Jacob E @ 2014-07-11 17:58 UTC (permalink / raw)
  To: olaf@aepfle.de; +Cc: git@vger.kernel.org

On Fri, 2014-07-11 at 12:15 +0200, Olaf Hering wrote:
> There is an incorrect message when doing "git rebase -i remote/branch".
> I have it only in german, see below. what happend is:
> 
> #01 make changes on another host
> #02 copy patchfile to localhost
> #03 apply patchfile
> #04 git commit -avs # create commit#1
> #05 sleep 123456
> #06 make different changes on another host
> #07 copy patchfile to localhost
> #08 git show | patch -Rp1
> #09 git commit -avs # create commit#2
> #10 apply patchfile
> #11 git commit -avs # create commit#3
> #12 git rebase -i remote/branch
>      pick commit#1 msg
>      f    commit#2 msg
>      f    commit#3 msg
> 
> ....
> ".git/rebase-merge/git-rebase-todo" 21L, 707C geschrieben
> Sie fragten den jüngsten Commit nachzubessern, aber das würde diesen leer
> machen. Sie können Ihr Kommando mit --allow-empty wiederholen, oder diesen
> Commit mit "git reset HEAD^" vollständig entfernen.
> Rebase im Gange; auf c105589
> Sie sind gerade beim Rebase von Branch 'mybranch' auf 'c105589'.
> 
> Keine Änderungen
> 
> Could not apply 6c5842320acc797d395afb5cdf373c2bfaebfa34... revert
> ....
> 
> Its not clear what '--allow-empty' refers to, git rebase does not seem to
> understand this option.
> 

You should be able to fix this with

git commit --allow-empty
git rebase --continue

But yes the message could possibly be made a little clearer.

Thanks,
Jake

> I should have skipped step #09 to avoid the trouble.
> git version is 2.0.1. Please adjust the error msg above.
> 
> 
> Olaf
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



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

* Re: pitfall with empty commits during git rebase
  2014-07-11 10:15 pitfall with empty commits during git rebase Olaf Hering
  2014-07-11 17:58 ` Keller, Jacob E
@ 2014-07-11 18:25 ` Jeff King
  1 sibling, 0 replies; 3+ messages in thread
From: Jeff King @ 2014-07-11 18:25 UTC (permalink / raw)
  To: Olaf Hering; +Cc: git

On Fri, Jul 11, 2014 at 12:15:47PM +0200, Olaf Hering wrote:

> Could not apply 6c5842320acc797d395afb5cdf373c2bfaebfa34... revert
> ....
> 
> Its not clear what '--allow-empty' refers to, git rebase does not seem to
> understand this option.

I think this is the same problem discussed recently in:

  http://thread.gmane.org/gmane.comp.version-control.git/251365

-Peff

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

end of thread, other threads:[~2014-07-11 18:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-11 10:15 pitfall with empty commits during git rebase Olaf Hering
2014-07-11 17:58 ` Keller, Jacob E
2014-07-11 18:25 ` Jeff King

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