blob: ee8b3a0570eff25511c2d7be0cbf291faf145ee0 [file] [log] [blame]
David Aguilarbc7a96a2011-08-18 00:23:46 -07001diff_cmd () {
David Aguilare2161bc2013-05-09 02:13:28 -07002 "$merge_tool_path" \
David Aguilarbc7a96a2011-08-18 00:23:46 -07003 --L1 "$MERGED (A)" --L2 "$MERGED (B)" \
4 "$LOCAL" "$REMOTE" >/dev/null 2>&1
5}
6
Fernando Ramos980145f2022-03-30 21:19:09 +02007diff_cmd_help () {
8 echo "Use KDiff3 (requires a graphical session)"
9}
10
David Aguilarbc7a96a2011-08-18 00:23:46 -070011merge_cmd () {
12 if $base_present
13 then
14 "$merge_tool_path" --auto \
15 --L1 "$MERGED (Base)" \
16 --L2 "$MERGED (Local)" \
17 --L3 "$MERGED (Remote)" \
18 -o "$MERGED" "$BASE" "$LOCAL" "$REMOTE" \
19 >/dev/null 2>&1
20 else
21 "$merge_tool_path" --auto \
22 --L1 "$MERGED (Local)" \
23 --L2 "$MERGED (Remote)" \
24 -o "$MERGED" "$LOCAL" "$REMOTE" \
25 >/dev/null 2>&1
26 fi
David Aguilarbc7a96a2011-08-18 00:23:46 -070027}
David Aguilar7c106052016-11-29 01:38:07 -080028
Fernando Ramos980145f2022-03-30 21:19:09 +020029merge_cmd_help () {
30 echo "Use KDiff3 (requires a graphical session)"
31}
32
David Aguilar7c106052016-11-29 01:38:07 -080033exit_code_trustable () {
34 true
35}
Michael Schindler47eb4c62021-06-07 20:18:33 +000036
37translate_merge_tool_path() {
38 if type kdiff3 >/dev/null 2>/dev/null
39 then
40 echo kdiff3
41 else
42 mergetool_find_win32_cmd "kdiff3.exe" "Kdiff3"
43 fi
44}