git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mergetool: Use merge.tool config option.
@ 2007-03-18 16:13 James Bowes
  2007-03-19  0:18 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: James Bowes @ 2007-03-18 16:13 UTC (permalink / raw)
  To: git; +Cc: junkio, tytso

If no merge program was supplied on the commandline, and the config option
merge.tool was set to a valid value, then mergetool would unset $merge_tool
and instead try to find an installed merge program. This patch removes the code
that unset $merge_tool, so the merge.tool config option will always be used, if
set.

Signed-off-by: James Bowes <jbowes@dangerouslyinc.com>
---
 git-mergetool.sh |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/git-mergetool.sh b/git-mergetool.sh
index 52386a5..19788a1 100755
--- a/git-mergetool.sh
+++ b/git-mergetool.sh
@@ -288,10 +288,6 @@ done
 
 if test -z "$merge_tool"; then
     merge_tool=`git-config merge.tool`
-    if test $merge_tool = kdiff3 -o $merge_tool = tkdiff -o \
-	$merge_tool = xxdiff -o $merge_tool = meld ; then
-	unset merge_tool
-    fi
 fi
 
 if test -z "$merge_tool" ; then
-- 
1.5.0.3

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

end of thread, other threads:[~2007-03-19  4:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-18 16:13 [PATCH] mergetool: Use merge.tool config option James Bowes
2007-03-19  0:18 ` Junio C Hamano
2007-03-19  1:11   ` James Bowes
2007-03-19  2:32     ` Theodore Tso
2007-03-19  4:09       ` 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).