git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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?
Previous: brian m. carlsonNext: Pratyush Yadav
Message 4 of 5 in “a problem with git diff”
  1. Guy MaurelApr 16, 2020
  2. brian m. carlsonApr 16, 2020
  3. brian m. carlsonApr 17, 2020
  4. Junio C HamanoApr 17, 2020
  5. Pratyush YadavApr 22, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.