Skip to content

Commit 8850c3d

Browse files
patthoytsgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Pat Thoyts <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b52612e commit 8850c3d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

mergetools/bc3

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,10 @@ merge_cmd () {
1616
}
1717

1818
translate_merge_tool_path() {
19-
echo bcompare
19+
if type bcomp >/dev/null 2>/dev/null
20+
then
21+
echo bcomp
22+
else
23+
echo bcompare
24+
fi
2025
}

0 commit comments

Comments
 (0)