From: Junio C Hamano Date: Sun, 22 May 2011 06:30:58 GMT Subject: Re: git difftool does does not respect current working directory Message-ID: <7vwrhjxn4t.fsf@alter.siamese.dyndns.org> In-Reply-To: <20110522061446.GA49297@gmail.com> David Aguilar writes: > I think updating git-difftool--helper.sh to pass a chdir to vim > might be just the thing to do. git-difftool.perl can be > updated to set $GIT_DIFFTOOL_PWD so that the helper can use it > as -c 'cd $GIT_DIFFTOOL_PWD'. I'll see if I can whip up a patch > in a lil bit. Hmm, would this benefit from sharing some concepts with 7cf16a1 (handle_alias: provide GIT_PREFIX to !alias, 2011-04-27)? If it helps, we might want to uniformly give this information to all external processes and programs, including hooks.