git-show ignores --pretty
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]
Quoted 7 lines · Andy Parkins
$ git --version git version 1.5.0.rc1.gf4b6cRunning 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]
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]
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