git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] git rebase is confuse if conflict resolution doesn't produce diff
@ 2008-08-15 17:00 Guillaume Desmottes
  2008-08-15 18:24 ` Stephan Beyer
  2008-08-15 18:41 ` Junio C Hamano
  0 siblings, 2 replies; 4+ messages in thread
From: Guillaume Desmottes @ 2008-08-15 17:00 UTC (permalink / raw)
  To: git

To reproduce:
- Rebase a branch "foo" on a branch "bar" in a way that there is a
conflict that you have to manually resolve.
- Run git diff and see the conflict
- Edit the conflicted file and remove all the conflicting bits (that
could be a valid resolution of the conflict)
- Now git diff produces an empty diff
- git add $CONFLICTED_FILE  as you have resolve the conflict
- git rebase --continue

You get the following error:
No changes - did you forget to use 'git add'?

git status is empty as the conflict was resolved.

A simple workaround is to add a dummy blank line in the conflicted file
so the diff is not empty.


	G.

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

end of thread, other threads:[~2008-08-18  9:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-15 17:00 [BUG] git rebase is confuse if conflict resolution doesn't produce diff Guillaume Desmottes
2008-08-15 18:24 ` Stephan Beyer
2008-08-18  9:10   ` Guillaume Desmottes
2008-08-15 18:41 ` 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).