From: David Aguilar Date: Mon, 18 May 2009 05:42:25 GMT Subject: Re: Running vimdiff in read-only mode with git-difftool? Message-ID: <20090518054224.GA32259@gmail.com> In-Reply-To: <9e00fd550905172201n6c95dc1bia48c9ac25d8ec98f@mail.gmail.com> On Sun, May 17, 2009 at 10:01:02PM -0700, Nick Welch wrote: > > According to the git-difftool manpage, what I'm trying to do > should work: > > Instead of running one of the known diff tools, > git-difftool can be customized to run an alternative > program by specifying the command line to invoke in a > configuration variable difftool..cmd. Custom difftool..cmd settings only work for custom (i.e. alternative/non-built-in) tools. If you rename that to something like "myvimdiff" (or anything != "vimdiff") then it'll work as expected. I wouldn't be opposed to a patch making {diff,merge}tool..cmd work for built-in tools as well as long as it had a testcase and didn't end up making the code unnecessarily complex. -- David