зеркало из https://github.com/microsoft/git.git
Merge branch 'oc/mergetools-beyondcompare'
* oc/mergetools-beyondcompare: mergetool: rename bc3 to bc
This commit is contained in:
Коммит
c1777a2970
|
@ -1204,7 +1204,7 @@ _git_diff ()
|
||||||
}
|
}
|
||||||
|
|
||||||
__git_mergetools_common="diffuse diffmerge ecmerge emerge kdiff3 meld opendiff
|
__git_mergetools_common="diffuse diffmerge ecmerge emerge kdiff3 meld opendiff
|
||||||
tkdiff vimdiff gvimdiff xxdiff araxis p4merge bc3 codecompare
|
tkdiff vimdiff gvimdiff xxdiff araxis p4merge bc codecompare
|
||||||
"
|
"
|
||||||
|
|
||||||
_git_difftool ()
|
_git_difftool ()
|
||||||
|
|
|
@ -250,7 +250,7 @@ list_merge_tool_candidates () {
|
||||||
tools="opendiff kdiff3 tkdiff xxdiff meld $tools"
|
tools="opendiff kdiff3 tkdiff xxdiff meld $tools"
|
||||||
fi
|
fi
|
||||||
tools="$tools gvimdiff diffuse diffmerge ecmerge"
|
tools="$tools gvimdiff diffuse diffmerge ecmerge"
|
||||||
tools="$tools p4merge araxis bc3 codecompare"
|
tools="$tools p4merge araxis bc codecompare"
|
||||||
fi
|
fi
|
||||||
case "${VISUAL:-$EDITOR}" in
|
case "${VISUAL:-$EDITOR}" in
|
||||||
*vim*)
|
*vim*)
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
diff_cmd () {
|
||||||
|
"$merge_tool_path" "$LOCAL" "$REMOTE"
|
||||||
|
}
|
||||||
|
|
||||||
|
merge_cmd () {
|
||||||
|
touch "$BACKUP"
|
||||||
|
if $base_present
|
||||||
|
then
|
||||||
|
"$merge_tool_path" "$LOCAL" "$REMOTE" "$BASE" \
|
||||||
|
-mergeoutput="$MERGED"
|
||||||
|
else
|
||||||
|
"$merge_tool_path" "$LOCAL" "$REMOTE" \
|
||||||
|
-mergeoutput="$MERGED"
|
||||||
|
fi
|
||||||
|
check_unchanged
|
||||||
|
}
|
||||||
|
|
||||||
|
translate_merge_tool_path() {
|
||||||
|
if type bcomp >/dev/null 2>/dev/null
|
||||||
|
then
|
||||||
|
echo bcomp
|
||||||
|
else
|
||||||
|
echo bcompare
|
||||||
|
fi
|
||||||
|
}
|
|
@ -1,25 +1 @@
|
||||||
diff_cmd () {
|
. "$MERGE_TOOLS_DIR/bc"
|
||||||
"$merge_tool_path" "$LOCAL" "$REMOTE"
|
|
||||||
}
|
|
||||||
|
|
||||||
merge_cmd () {
|
|
||||||
touch "$BACKUP"
|
|
||||||
if $base_present
|
|
||||||
then
|
|
||||||
"$merge_tool_path" "$LOCAL" "$REMOTE" "$BASE" \
|
|
||||||
-mergeoutput="$MERGED"
|
|
||||||
else
|
|
||||||
"$merge_tool_path" "$LOCAL" "$REMOTE" \
|
|
||||||
-mergeoutput="$MERGED"
|
|
||||||
fi
|
|
||||||
check_unchanged
|
|
||||||
}
|
|
||||||
|
|
||||||
translate_merge_tool_path() {
|
|
||||||
if type bcomp >/dev/null 2>/dev/null
|
|
||||||
then
|
|
||||||
echo bcomp
|
|
||||||
else
|
|
||||||
echo bcompare
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче