From: "Tom Tanner (BLOOMBERG/ LONDON)" <ttanner2@bloomberg.net>
To: git@vger.kernel.org
Subject: git difftool and git mergetool aren't returning errors when the tool has issues
Date: Fri, 12 Aug 2016 07:13:41 -0000 [thread overview]
Message-ID: <57AD772501C207A400390148_0_15304@p057> (raw)
For instance, if you set your diff/mergetool to meld and you don't have it installed:
> git difftool
Viewing (1/1): 'blah'
Launch 'meld' [Y/n]? y
/home/ttanner/bin/meld[8]: /opt/swt/bin/meld: not found
> echo $?
0
> /home/ttanner/bin/meld
/home/ttanner/bin/meld[8]: /opt/swt/bin/meld: not found
> echo $?
127
or
> env DISPLAY=wibble git difftool
Viewing (1/1): blah'
Launch 'xxdiff' [Y/n]? y
xxdiff: cannot connect to X server wibble
> echo $?
0
> env DISPLAY=wibble xxdiff thisfile thatfile
xxdiff: cannot connect to X server wibble
> echo $?
1
and this one (with DISPLAY unset because it was being run elsewhere)
> git mergtool
Normal merge conflict for 'blah:
{local}: modified file
{remote}: modified file
Could not find ':' in DISPLAY: yeah, right
XIO: fatal IO error 73 (Connection reset by peer) on X server "server:66.0"
after 0 requests (0 known processed) with 0 events remaining.
> echo $?
0
which last looked like a successful merge to a script, because it returned 0.
next reply other threads:[~2016-08-12 7:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-12 7:13 Tom Tanner (BLOOMBERG/ LONDON) [this message]
2016-08-13 10:36 ` git difftool and git mergetool aren't returning errors when the tool has issues John Keeping
2016-08-13 11:30 ` [PATCH] difftool: always honor "command not found" exit code John Keeping
2016-08-13 22:59 ` David Aguilar
2016-08-14 3:21 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=57AD772501C207A400390148_0_15304@p057 \
--to=ttanner2@bloomberg.net \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).