Re: [PATCH] git-show: grok blobs, trees and tags, too
- From
- Santi Béjar <sbejar@gmail.com>
- Date
- Dec 15, 2006, 09:18 UTC
- Message-ID
- <8aa486160612150118y44744533t16af6d3086ac6b21@mail.gmail.com>
- In-Reply-To
- <Pine.LNX.4.63.0612141129320.3635@wbgn013.biozentrum.uni-wuerzburg.de>
On 12/14/06, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> > Since git-show is pure Porcelain, it is the ideal candidate to > pretty print other things than commits, too.
I think "git show ${tag}" should be more like "git show ${commit}", that is, with the tagger and date information and the indent, as:
$ git show v1.4.4.2
tag v1.4.4.2
Tagger: Junio C Hamano <junkio@cox.net>
Date: ${Date} GIT 1.4.4.2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFdx8+wMbZpPMRm5oRAsOXAJsGY8DIYey1TZlEXIGq5+8MNgEl1QCfQC0f
c5SmdLmAm2KPsCf+bCuoK+k=
=oDuA
-----END PGP SIGNATURE-----
commit 49ed2bc4660c7cd0592cf21cc514080574d06320
...Show 6 quoted lines
> > +EXAMPLES > +-------- > + > +git show v1.0.0:: > + Shows the tag `v1.0.0`.
and the commit (or object) it references.
I would add:
git show v1.0.0^{}::
Shows only the commit referenced by the tag `v1.0.0`.