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

Re: "git show" does not use diff.external like "git diff" does

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 28, 2010, 17:52 UTC
Message-ID
<7v39phyec2.fsf@alter.siamese.dyndns.org>
In-Reply-To
<201012281510.oBSFAMm14943@momjian.us>
Bruce Momjian <bruce@momjian.us> writes:
> I have diff.external configured properly, and it is used by "git diff",
> but "git show" does not call the script and only returns unified diffs.
>
> Is there a way to make "git show" use an external diff script?
"git show --ext-diff"?

We end the Description section of the manual with "This manual page describes only the most frequently used options." without explicitly saying "Options from the underlying this and that commands can be given as well", which is rather suboptimal.

The only existing hint there is one sentence before, "The command takes options applicable to the git diff-tree command...", but the reader needs to be both careful and vaguely familiar with the way the git command set is structured to take advantage of that hint.

Previous: Bruce MomjianNext: Bruce Momjian
Message 2 of 3 in “"git show" does not use diff.external like "git diff" does”
  1. Bruce MomjianDec 28, 2010
  2. Junio C HamanoDec 28, 2010
  3. Bruce MomjianDec 28, 2010

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.