summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ae69fd0)
raw | patch | inline | side by side (parent: ae69fd0)
author | Dan McGee <dpmcgee@gmail.com> | |
Wed, 15 Sep 2010 02:21:43 +0000 (21:21 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 15 Sep 2010 17:14:16 +0000 (10:14 -0700) |
When the base version is available, use a three-way, four panel view by
default. This shows the (local, base, remote) revisions up top and the
merged result by itself in the lower pane. All revisions will still scroll
together by default, and the cursor still defaults to the merged result edit
pane.
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
default. This shows the (local, base, remote) revisions up top and the
merged result by itself in the lower pane. All revisions will still scroll
together by default, and the cursor still defaults to the merged result edit
pane.
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-mergetool--lib.sh | patch | blob | history |
diff --git a/git-mergetool--lib.sh b/git-mergetool--lib.sh
index f9a51ba50448c8e275c14e0e33afa31239c890a9..b84ac582f957a4e77af32f6f6285fd5106219804 100644 (file)
--- a/git-mergetool--lib.sh
+++ b/git-mergetool--lib.sh
vimdiff|gvimdiff)
if merge_mode; then
touch "$BACKUP"
- "$merge_tool_path" -f -d -c "wincmd l" \
- "$LOCAL" "$MERGED" "$REMOTE"
+ if $base_present; then
+ "$merge_tool_path" -f -d -c "wincmd J" \
+ "$MERGED" "$LOCAL" "$BASE" "$REMOTE"
+ else
+ "$merge_tool_path" -f -d -c "wincmd l" \
+ "$LOCAL" "$MERGED" "$REMOTE"
+ fi
check_unchanged
else
"$merge_tool_path" -f -d -c "wincmd l" \