mirror of
https://github.com/git/git
synced 2024-11-05 18:59:29 +00:00
83bbf9b92e
The merge tools vimdiff2, vimdiff3, gvimdiff2, gvimdiff3 and bc3 are all variants of the main tools vimdiff and bc. They are implemented in the main and a one-liner script that just sources it exist for each. Allow variants ending in [0-9] to be correctly wired without the need for such one-liners, so instead of 5 scripts, only 1 (gvimdiff) is needed. Signed-off-by: pudinha <rogi@skylittlesystem.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
28 lines
413 B
Text
28 lines
413 B
Text
diff_cmd () {
|
|
"$merge_tool_path" "$LOCAL" "$REMOTE"
|
|
}
|
|
|
|
merge_cmd () {
|
|
if $base_present
|
|
then
|
|
"$merge_tool_path" "$LOCAL" "$REMOTE" "$BASE" \
|
|
-mergeoutput="$MERGED"
|
|
else
|
|
"$merge_tool_path" "$LOCAL" "$REMOTE" \
|
|
-mergeoutput="$MERGED"
|
|
fi
|
|
}
|
|
|
|
translate_merge_tool_path() {
|
|
if type bcomp >/dev/null 2>/dev/null
|
|
then
|
|
echo bcomp
|
|
else
|
|
echo bcompare
|
|
fi
|
|
}
|
|
|
|
list_tool_variants () {
|
|
echo bc
|
|
echo bc3
|
|
}
|