On Tue, Aug 02, 2011 at 02:25:40AM -0700, K wrote:
> Today I run into a problem that Git Difftool cannot be launched and
> with and error message.
>
> I am using Win7 with portable version 1.7.6 preview. Beyond compare 3
> as my external diff tool
>
> to replicate the error is simple
>
> just run a git difftool command in either git-bash or git-cmd shell an
> error occur: with the following message:
> /libexec/git-core/git-mergetool--lib: line 129: bcompare: command not
> found
Having a look at commit ffe6dc Sebastian added bc3 as a builtin diff
tool.
mergetool--lib: Add Beyond Compare 3 as a tool
It seems that you can not override an inbuilt tool by configuration so
it tries to execute the command 'bcompare' there. Two possible
solutions:
1. You rename your custom diff tool to something else than bc3
2. You provide a patch that adds the ability to override builting tools.
I do not know whether not being able to override builtin diff tools was
a deliberate choice. So you might need to dicuss this on the main git
mailing list.
Sebastian do you know more about this?
Cheers Heiko
> I do not know whether not being able to override builtin diff tools was
> a deliberate choice. So you might need to dicuss this on the main git
> mailing list.
Overriding a built-in tool should not be necessary in any case as you
still can specify an explicit path using the "difftool.<tool>.path"
config variable if the tool is not in your PATH environment. I'm
obviously using Beyond Compare myself (as a diff tool; I use a
different merge tool), and you should configure it like this:
----8<----
[diff]
tool = bc3
[difftool "bc3"]
path = c:/Program Files (x86)/Beyond Compare 3/BCompare.exe
----8<----
That's it, just replace "cmd" with "path" and get rid of the
arguments. It's the same for the mergetool, and you can remove the
"trustExitCode" there, too.
--
Sebastian Schuberth