Re: git difftool does does not respect current working directory
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 22, 2011, 06:30 UTC
- Message-ID
- <7vwrhjxn4t.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20110522061446.GA49297@gmail.com>
David Aguilar <davvid@gmail.com> writes:
Show 5 quoted lines
> 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.