* [BUG?] git-revert ignores --no-commit on conflicts
@ 2014-04-01 13:24 Florian Bruhin
0 siblings, 0 replies; only message in thread
From: Florian Bruhin @ 2014-04-01 13:24 UTC (permalink / raw)
To: git
[-- Attachment #1: Type: text/plain, Size: 1543 bytes --]
Hi,
I found something which seems to be a bug to me (or well, maybe I'm
doing something wrong...). When I revert a commit with -n/--no-commit
and there's a conflict, when doing "git revert --continue" I get an
editor, even though I wouldn't expect that to happen.
Example:
$ git init
Initialized empty Git repository in [...]
$ echo foo > file
$ git add file
$ git commit -m "Initial commit"
[master (root-commit) 9f8e5fb] Initial commit
1 file changed, 1 insertion(+)
create mode 100644 file
$ echo bar > file
$ git commit -am "foo -> bar"
[master e53d99f] foo -> bar
1 file changed, 1 insertion(+), 1 deletion(-)
$ echo baz > file
$ git commit -am "bar -> baz"
[master fa3c23f] bar -> baz
1 file changed, 1 insertion(+), 1 deletion(-)
$ git revert -n HEAD # this works as expected
$ git revert --abort
$ git revert -n e53d99f # reverting the middle commit to provoke a conflict
error: could not revert e53d99f... foo -> bar
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
$ echo fish > file
$ git add file
$ git revert --continue # here my editor opens
Aborting commit due to empty commit message.
Tested using git 1.9.1 and 1.9.0.msysgit.0.
Florian
--
() ascii ribbon campaign - stop html mail www.asciiribbon.org
/\ www.the-compiler.org | I love long mails http://email.is-not-s.ms/
Love is never asking why?
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-04-01 13:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-01 13:24 [BUG?] git-revert ignores --no-commit on conflicts Florian Bruhin
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).