]> git.ipfire.org Git - thirdparty/git.git/commit - git.c
difftool: allow running outside Git worktrees with --no-index
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 14 Mar 2019 11:25:04 +0000 (04:25 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Mar 2019 02:48:19 +0000 (11:48 +0900)
commit20de316e33446f37200e51aa333ba7d824dfd478
treed9a485cf00354fa2442b196a69003554b9bb2a19
parent1a85b49b87af0e17a503b94df10d0b39472ad5b8
difftool: allow running outside Git worktrees with --no-index

As far as this developer can tell, the conversion from a Perl script to
a built-in caused the regression in the difftool that it no longer runs
outside of a Git worktree (with `--no-index`, of course).

It is a bit embarrassing that it took over two years after retiring the
Perl version to discover this regression, but at least we now know, and
can do something, about it.

This fixes https://github.com/git-for-windows/git/issues/2123

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/difftool.c
git.c
t/t7800-difftool.sh