Code

mergetools: use the correct tool for Beyond Compare 3 on Windows
authorPat Thoyts <patthoyts@users.sourceforge.net>
Sat, 15 Oct 2011 14:05:19 +0000 (15:05 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 16 Oct 2011 03:13:55 +0000 (20:13 -0700)
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>
mergetools/bc3

index 27b3dd48b840139acd65ea742e04221c6400a485..b6319d206e2333e42469486604d4635e846e5faa 100644 (file)
@@ -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
 }