mirror of
https://github.com/git/git.git
synced 2024-11-27 20:14:30 +08:00
980145f747
The output of `git mergetool --tool-help` and `git difftool --tool-help` only showed the `alias` of each available merge/diff tool. It is not always obvious what tool these `aliases` end up using (ex: `opendiff` runs `FileMerge` and `bc` runs `Beyond Compare`). This commit adds a short description to each of them to help the user identify the `alias` they want. Signed-off-by: Fernando Ramos <greenfoo@u92.eu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
27 lines
515 B
Plaintext
27 lines
515 B
Plaintext
diff_cmd () {
|
|
"$merge_tool_path" -wait -2 "$LOCAL" "$REMOTE" >/dev/null 2>&1
|
|
}
|
|
|
|
diff_cmd_help () {
|
|
echo "Use Araxis Merge (requires a graphical session)"
|
|
}
|
|
|
|
merge_cmd () {
|
|
if $base_present
|
|
then
|
|
"$merge_tool_path" -wait -merge -3 -a1 \
|
|
"$BASE" "$LOCAL" "$REMOTE" "$MERGED" >/dev/null 2>&1
|
|
else
|
|
"$merge_tool_path" -wait -2 \
|
|
"$LOCAL" "$REMOTE" "$MERGED" >/dev/null 2>&1
|
|
fi
|
|
}
|
|
|
|
merge_cmd_help () {
|
|
echo "Use Araxis Merge (requires a graphical session)"
|
|
}
|
|
|
|
translate_merge_tool_path() {
|
|
echo compare
|
|
}
|