Skip to content

Commit 8bf6719

Browse files
Sven Strickrothgitster
authored andcommitted
mergetools: support TortoiseGitMerge
TortoiseMerge.exe was ben renamed to TortoiseGitMerge.exe (starting with 1.8.0) in order to make it clear that it has special support for git, and prevent confusion with the TortoiseSVN TortoiseMerge version. Signed-off-by: Sven Strickroth <email@cs-ware.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 5d41784 commit 8bf6719

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

mergetools/tortoisemerge

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,16 @@ merge_cmd () {
1111
-theirs:"$REMOTE" -merged:"$MERGED"
1212
check_unchanged
1313
else
14-
echo "TortoiseMerge cannot be used without a base" 1>&2
14+
echo "$merge_tool_path cannot be used without a base" 1>&2
1515
return 1
1616
fi
1717
}
18+
19+
translate_merge_tool_path() {
20+
if type tortoisegitmerge >/dev/null 2>/dev/null
21+
then
22+
echo tortoisegitmerge
23+
else
24+
echo tortoisemerge
25+
fi
26+
}

0 commit comments

Comments
 (0)