git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* trustExitCode doesn't apply to vimdiff mergetool
@ 2016-11-27  2:44 Dun Peal
  2016-11-27  5:08 ` Jeff King
  0 siblings, 1 reply; 8+ messages in thread
From: Dun Peal @ 2016-11-27  2:44 UTC (permalink / raw)
  To: Git ML

I'm using vimdiff as my mergetool, and have the following lines in ~/.gitconfig:

[merge]
    tool = vimdiff
[mergetool "vimdiff"]
    trustExitCode = true


My understanding from the docs is that this sets
mergetool.vimdiff.trustExitCode to true, thereby concluding that a
merge hasn't been successful if vimdiff's exit code is non-zero.

Unfortunately, when I exit Vim using `:cq` - which returns code 1 -
the merge is still presumed to have succeeded.

Is there a way to accomplish the desired effect, such that exiting
vimdiff with a non-zero code would prevent git from resolving the
conflict in the merged file?

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

end of thread, other threads:[~2016-11-28 17:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-27  2:44 trustExitCode doesn't apply to vimdiff mergetool Dun Peal
2016-11-27  5:08 ` Jeff King
2016-11-27 13:46   ` Dun Peal
2016-11-27 16:55     ` Jeff King
2016-11-28  1:45       ` David Aguilar
2016-11-28  2:01         ` Jeff King
2016-11-28  2:15         ` David Aguilar
2016-11-28 17:17           ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).