threads / discuss / 6399

git-show ignores --pretty

Subject: git-show ignores --pretty

## tl;dr

4 messages between Jan 16, 2007 and Jan 16, 2007.

replies: 3people: 2as markdown or json

Andy Parkins· Jan 16, 2007, 10:58 UTC · lore
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· Jan 16, 2007, 11:14 UTC · re: Andy Parkins · lore

Re: git-show ignores --pretty

On Tuesday 2007 January 16 10:58, Andy Parkins wrote:
Show 7 quoted lines
> $ 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· Jan 16, 2007, 11:21 UTC · re: Andy Parkins · lore

Re: git-show ignores --pretty

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· Jan 16, 2007, 11:32 UTC · re: Andy Parkins · lore

Re: git-show ignores --pretty

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

← back to recent threads