Re: [PATCH] git-show: grok blobs, trees and tags, too
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Dec 15, 2006, 10:22 UTC
- Message-ID
- <Pine.LNX.4.63.0612151122080.3635@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <8aa486160612150118y44744533t16af6d3086ac6b21@mail.gmail.com>
Hi,
On Fri, 15 Dec 2006, Santi Béjar wrote:
Show 23 quoted lines
> 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
> ...Okay. You code it?
Show 12 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`.Okay. You provide a patch?
Ciao, Dscho