1diff_cmd () {
2 "$merge_tool_path" -R -f -d \
3 -c 'wincmd l' -c 'cd $GIT_PREFIX' "$LOCAL" "$REMOTE"
4}
5
6merge_cmd () {
7 case "$1" in
8 gvimdiff|vimdiff)
9 if $base_present
10 then
11 "$merge_tool_path" -f -d -c '4wincmd w | wincmd J' \
12 "$LOCAL" "$BASE" "$REMOTE" "$MERGED"
13 else
14 "$merge_tool_path" -f -d -c 'wincmd l' \
15 "$LOCAL" "$MERGED" "$REMOTE"
16 fi
17 ;;
18 gvimdiff2|vimdiff2)
19 "$merge_tool_path" -f -d -c 'wincmd l' \
20 "$LOCAL" "$MERGED" "$REMOTE"
21 ;;
22 gvimdiff3|vimdiff3)
23 if $base_present
24 then
25 "$merge_tool_path" -f -d -c 'hid | hid | hid' \
26 "$LOCAL" "$REMOTE" "$BASE" "$MERGED"
27 else
28 "$merge_tool_path" -f -d -c 'hid | hid' \
29 "$LOCAL" "$REMOTE" "$MERGED"
30 fi
31 ;;
32 esac
33}
34
35translate_merge_tool_path() {
36 case "$1" in
37 gvimdiff|gvimdiff2|gvimdiff3)
38 echo gvim
39 ;;
40 vimdiff|vimdiff2|vimdiff3)
41 echo vim
42 ;;
43 esac
44}
45
46exit_code_trustable () {
47 true
48}