Re: a problem with git diff
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 17, 2020, 21:32 UTC
- Message-ID
- <xmqqh7xhvlvg.fsf@gitster.c.googlers.com>
- In-Reply-To
- <20200417203323.GK2751707@camp.crustytoothpaste.net>
"brian m. carlson" <sandals@crustytoothpaste.net> writes:
> I don't know because I don't use git-gui. If you would, please keep the > list in CC, so that other folks who do know the answer can chime in.
I do not use git-gui, either, but IIRC, it stayed away from scripting around Porcelain commands, so it is not all that surprising that it does not use diff.algorithm.
There is gui.diffopts configuration used in git-gui/lib/diff.tcl::
lappend cmd -p
lappend cmd --color
set cmd [concat $cmd $repo_config(gui.diffopts)]
if {$repo_config(gui.diffcontext) >= 1} {
lappend cmd "-U$repo_config(gui.diffcontext)"
}so perhaps you can pass --patience via that configuration? I.e.
[gui] diffopts = --patience
in .git/config?