summaryrefslogtreecommitdiff
path: root/mergetools
diff options
context:
space:
mode:
authorPat Thoyts <patthoyts@users.sourceforge.net>2011-10-15 14:05:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-10-16 03:13:55 (GMT)
commit8850c3da95d17bb23576ee5ee3484bfd3d486444 (patch)
tree5a5f2932d9dad947e379f6ede60cd75b498a26ba /mergetools
parentb52612ed4f736c517231954ef0d765add1fe29b7 (diff)
downloadgit-8850c3da95d17bb23576ee5ee3484bfd3d486444.zip
git-8850c3da95d17bb23576ee5ee3484bfd3d486444.tar.gz
git-8850c3da95d17bb23576ee5ee3484bfd3d486444.tar.bz2
mergetools: use the correct tool for Beyond Compare 3 on Windows
On Windows the bcompare tool launches a graphical program and does not wait for it to terminate. A separate 'bcomp' tool is provided which will wait for the view to exit so we use this instead. Reported-by: Werner BEROUX <werner@beroux.com> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mergetools')
-rw-r--r--mergetools/bc37
1 files changed, 6 insertions, 1 deletions
diff --git a/mergetools/bc3 b/mergetools/bc3
index 27b3dd4..b6319d2 100644
--- a/mergetools/bc3
+++ b/mergetools/bc3
@@ -16,5 +16,10 @@ merge_cmd () {
}
translate_merge_tool_path() {
- echo bcompare
+ if type bcomp >/dev/null 2>/dev/null
+ then
+ echo bcomp
+ else
+ echo bcompare
+ fi
}