summaryrefslogtreecommitdiff
path: root/mergetools
diff options
context:
space:
mode:
authorLibravatar David Aguilar <davvid@gmail.com>2013-01-25 01:43:52 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-01-27 18:32:43 -0800
commitb2a6b7122e66d4882ef5ac31e3a03969b5b6a199 (patch)
tree4cda89469066ebe7f53324dba755b74d67c0fa1f /mergetools
parentgit-difftool: use git-mergetool--lib for "--tool-help" (diff)
downloadtgif-b2a6b7122e66d4882ef5ac31e3a03969b5b6a199.tar.xz
mergetools/vim: remove redundant diff command
vimdiff and vimdiff2 differ only by their merge command so remove the logic in the diff command since it's not actually needed. Signed-off-by: David Aguilar <davvid@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mergetools')
-rw-r--r--mergetools/vim12
1 files changed, 2 insertions, 10 deletions
diff --git a/mergetools/vim b/mergetools/vim
index 619594ae4b..39d032771b 100644
--- a/mergetools/vim
+++ b/mergetools/vim
@@ -1,14 +1,6 @@
diff_cmd () {
- case "$1" in
- gvimdiff|vimdiff)
- "$merge_tool_path" -R -f -d \
- -c 'wincmd l' -c 'cd $GIT_PREFIX' "$LOCAL" "$REMOTE"
- ;;
- gvimdiff2|vimdiff2)
- "$merge_tool_path" -R -f -d \
- -c 'wincmd l' -c 'cd $GIT_PREFIX' "$LOCAL" "$REMOTE"
- ;;
- esac
+ "$merge_tool_path" -R -f -d \
+ -c 'wincmd l' -c 'cd $GIT_PREFIX' "$LOCAL" "$REMOTE"
}
merge_cmd () {