Skip to contentSkip to conversation

git-show ignores --pretty

DISCUSSION Andy Parkins 2 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

Signature · 2 lines
Dr Andy Parkins, M Eng (hons), MIEE
[email protected]
#1 lore raw
Quoted 7 lines · Andy Parkins
$ 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

Signature · 2 lines
Dr Andy Parkins, M Eng (hons), MIEE
[email protected]
#2 lore raw
Quoted 2 lines · Andy Parkins

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

Signature · 2 lines
Dr Andy Parkins, M Eng (hons), MIEE
[email protected]
#3 lore raw
In reply to Andy Parkins

Hi,

Quoted 2 lines · Andy Parkins

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