threads / discuss / 28034

When i run git difftool, git did not use difftool.bc3.cmd,why?

Subject: When i run git difftool, git did not use difftool.bc3.cmd,why?

## tl;dr

3 messages between Aug 7, 2011 and Aug 8, 2011.

replies: 2people: 2as markdown or json

jelly· Aug 7, 2011, 01:48 UTC · lore
Even i write a wrong exe file name bcomp1.exe, git still use bcompare.
 
[diff]
    tool = bc3
[difftool "bc3"]
    cmd = "/cygdrive/c/program files/beyond compare 3/bcomp1.exe" "$(cygpath -w $LOCAL)" "$REMOTE"
$ git difftool/usr/lib/git-core/git-mergetool--lib: line 124: bcompare: command not found
jelly· Aug 7, 2011, 02:03 UTC · re: jelly · lore

Re:When i run git difftool, git did not use difftool.bc3.cmd,why?

>When i run git difftool, git did not use difftool.bc3.cmd,why?>Even i write a wrong exe file name bcomp1.exe, git still use bcompare.

I found the reason. because bc3 is a special name, git call bcompare internal.change the name bc3, it works fine.

David Aguilar· Aug 8, 2011, 11:08 UTC · re: jelly · lore

Re: When i run git difftool, git did not use difftool.bc3.cmd,why?

On Aug 6, 2011, at 7:03 PM, jelly <sinojelly@163.com> wrote:
>> When i run git difftool, git did not use difftool.bc3.cmd,why?>Even i write a wrong exe file name bcomp1.exe, git still use bcompare.
> I found the reason.
> because bc3 is a special name, git call bcompare internal.change the name bc3, it works fine.
That's right. We have difftool.<tool>.path for this use case.  It lets you redefine the path to the tool (e.g. bcompare).

← back to recent threads