# git-show ignores --pretty

4 messages from 2007-01-16 to 2007-01-16. Participants: Andy Parkins, Johannes Schindelin.
Thread: https://gitlist.dev/t/6399

## Andy Parkins, 2007-01-16 10:58

Subject: git-show ignores --pretty
Message-ID: <200701161058.15725.andyparkins@gmail.com>
URL: https://gitlist.dev/e/200701161058.15725.andyparkins%40gmail.com

```
Hello,

$ git --version
git version 1.5.0.rc1.gf4b6c

Running git-show with a --pretty format is no different from without 
a --pretty.

Doesn't seem to matter what format you pick, you always get medium/full.



Andy
-- 
Dr Andy Parkins, M Eng (hons), MIEE
andyparkins@gmail.com

```

## Andy Parkins, 2007-01-16 11:14

Subject: Re: git-show ignores --pretty
Message-ID: <200701161114.07073.andyparkins@gmail.com>
URL: https://gitlist.dev/e/200701161114.07073.andyparkins%40gmail.com
In-Reply-To: <200701161058.15725.andyparkins@gmail.com>

```
On Tuesday 2007 January 16 10:58, Andy Parkins wrote:

> $ git --version
> git version 1.5.0.rc1.gf4b6c
>
> Running git-show with a --pretty format is no different from without
> a --pretty.
>
> Doesn't seem to matter what format you pick, you always get medium/full.

Correction: I think I'm going blind.

You always get the diff, which could well be intended.  Is that the case?  If 
it is, is there a way to surpress the diff?


Andy
-- 
Dr Andy Parkins, M Eng (hons), MIEE
andyparkins@gmail.com

```

## Andy Parkins, 2007-01-16 11:21

Subject: Re: git-show ignores --pretty
Message-ID: <200701161121.38876.andyparkins@gmail.com>
URL: https://gitlist.dev/e/200701161121.38876.andyparkins%40gmail.com
In-Reply-To: <200701161114.07073.andyparkins@gmail.com>

```
On Tuesday 2007 January 16 11:14, Andy Parkins wrote:

> You always get the diff, which could well be intended.  Is that the case? 
> If it is, is there a way to surpress the diff?

The answer is "yes"; found in man git-diff-tree (which I'm sure you knew, but 
I'm just terminating the thread in an answer, for the next soul that comes 
looking).

 git-show -s HEAD

Suppresses the diff output.


Andy

-- 
Dr Andy Parkins, M Eng (hons), MIEE
andyparkins@gmail.com

```

## Johannes Schindelin, 2007-01-16 11:32

Subject: Re: git-show ignores --pretty
Message-ID: <Pine.LNX.4.63.0701161231460.22628@wbgn013.biozentrum.uni-wuerzburg.de>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0701161231460.22628%40wbgn013.biozentrum.uni-wuerzburg.de
In-Reply-To: <200701161114.07073.andyparkins@gmail.com>

```
Hi,

On Tue, 16 Jan 2007, Andy Parkins wrote:

> You always get the diff, which could well be intended.  Is that the 
> case?  If it is, is there a way to surpress the diff?

"git show -s <commit>"

Ciao,
Dscho

```
