# "git show" does not use diff.external like "git diff" does

3 messages from 2010-12-28 to 2010-12-28. Participants: Bruce Momjian, Junio C Hamano.
Thread: https://gitlist.dev/t/26147

## Bruce Momjian, 2010-12-28 15:10

Subject: "git show" does not use diff.external like "git diff" does
Message-ID: <201012281510.oBSFAMm14943@momjian.us>
URL: https://gitlist.dev/e/201012281510.oBSFAMm14943%40momjian.us

```
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?

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +

```

## Junio C Hamano, 2010-12-28 17:52

Subject: Re: "git show" does not use diff.external like "git diff" does
Message-ID: <7v39phyec2.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7v39phyec2.fsf%40alter.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.

```

## Bruce Momjian, 2010-12-28 17:54

Subject: Re: "git show" does not use diff.external like "git diff" does
Message-ID: <201012281754.oBSHsgU18495@momjian.us>
URL: https://gitlist.dev/e/201012281754.oBSHsgU18495%40momjian.us
In-Reply-To: <7v39phyec2.fsf@alter.siamese.dyndns.org>

```
Junio C Hamano wrote:
> 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.

Yes, someone on IRC eventually suggested --ext-diff, and it does work. 
I was hoping for something that caused 'show' to always use --ext-diff,
like git diff does.  A git alias was the only suggested workaround.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +

```
