2011-08-18 09:23:46 +02:00
|
|
|
diff_cmd () {
|
|
|
|
"$merge_tool_path" \
|
|
|
|
-R 'Accel.Search: "Ctrl+F"' \
|
2016-12-10 03:14:21 +01:00
|
|
|
-R 'Accel.SearchForward: "Ctrl+G"' \
|
2011-08-18 09:23:46 +02:00
|
|
|
"$LOCAL" "$REMOTE"
|
2021-10-13 04:45:39 +02:00
|
|
|
|
|
|
|
# xxdiff can segfault on binary files which are often uninteresting.
|
|
|
|
# Do not allow segfaults to stop us from continuing on to the next file.
|
|
|
|
if test $? = 128
|
|
|
|
then
|
|
|
|
return 1
|
|
|
|
fi
|
2011-08-18 09:23:46 +02:00
|
|
|
}
|
|
|
|
|
2022-03-30 21:19:09 +02:00
|
|
|
diff_cmd_help () {
|
|
|
|
echo "Use xxdiff (requires a graphical session)"
|
|
|
|
}
|
|
|
|
|
2011-08-18 09:23:46 +02:00
|
|
|
merge_cmd () {
|
|
|
|
if $base_present
|
|
|
|
then
|
|
|
|
"$merge_tool_path" -X --show-merged-pane \
|
2016-12-10 03:14:21 +01:00
|
|
|
-R 'Accel.SaveAsMerged: "Ctrl+S"' \
|
2011-08-18 09:23:46 +02:00
|
|
|
-R 'Accel.Search: "Ctrl+F"' \
|
2016-12-10 03:14:21 +01:00
|
|
|
-R 'Accel.SearchForward: "Ctrl+G"' \
|
2011-08-18 09:23:46 +02:00
|
|
|
--merged-file "$MERGED" "$LOCAL" "$BASE" "$REMOTE"
|
|
|
|
else
|
|
|
|
"$merge_tool_path" -X $extra \
|
2016-12-10 03:14:21 +01:00
|
|
|
-R 'Accel.SaveAsMerged: "Ctrl+S"' \
|
2011-08-18 09:23:46 +02:00
|
|
|
-R 'Accel.Search: "Ctrl+F"' \
|
2016-12-10 03:14:21 +01:00
|
|
|
-R 'Accel.SearchForward: "Ctrl+G"' \
|
2011-08-18 09:23:46 +02:00
|
|
|
--merged-file "$MERGED" "$LOCAL" "$REMOTE"
|
|
|
|
fi
|
|
|
|
}
|
2022-03-30 21:19:09 +02:00
|
|
|
|
|
|
|
merge_cmd_help () {
|
|
|
|
echo "Use xxdiff (requires a graphical session)"
|
|
|
|
}
|