summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9cec653)
raw | patch | inline | side by side (parent: 9cec653)
author | Theodore Ts'o <tytso@mit.edu> | |
Mon, 19 Mar 2007 02:30:10 +0000 (22:30 -0400) | ||
committer | Theodore Ts'o <tytso@mit.edu> | |
Mon, 19 Mar 2007 02:30:10 +0000 (22:30 -0400) |
Also add support for vimdiff
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
git-mergetool.sh | patch | blob | history |
diff --git a/git-mergetool.sh b/git-mergetool.sh
index 563c5c048f5f434b4208750de9f7b11aced36bfd..7942fd0b6490760b09248b961b38adb89ede1adb 100755 (executable)
--- a/git-mergetool.sh
+++ b/git-mergetool.sh
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
+ case "$merge_tool" in
+ kdiff3 | tkdiff | xxdiff | meld | emerge | vimdiff)
+ ;; # happy
+ *)
+ echo >&2 "git config option merge.tool set to unknown tool: $merge_tool"
+ echo >&2 "Resetting to default..."
+ unset merge_tool
+ ;;
+ esac
fi
if test -z "$merge_tool" ; then