git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to show an annotated tag's timestamp?
@ 2008-08-12 19:40 Dirk Süsserott
  2008-08-12 20:35 ` Mikael Magnusson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Dirk Süsserott @ 2008-08-12 19:40 UTC (permalink / raw)
  To: Git Mailing List

I'd like to display *when* a certain annotated tag was
created, i.e. its timestamp. I know two ways but am looking
for a third one:

Gitk: When clicking the yellow tag item (called 'testtag'
in my case) it says:
-------------
object 9a04a26d3e5ea09be32934f50020d0286ebe7325
type commit
tag testtag
tagger <tagger's name> <tagger's email-address> 1218568300 +0200
-------------
Well, I can convert 1218568300 into some human readable string,
but that's not convenient.

So I tried 'git show testtag'. It says:
-------------
(*) tag testtag
(*) Tagger: <tagger's name> <tagger's email-address>
(*) Date:   Tue Aug 12 21:17:17 2008 +0200
(*)
(*) testtag
commit 0a62b3380d21bf65270490619da4a2efd6d2ca7a
Author: ...
Date:   Thu Apr 24 18:49:38 2008 +0200
[...]
-------------

... followed by the whole commit message and diff of the
commit that's pointed to by the tag. That's too much for
my purpose.

Is there a way to output only when and by whom the tag
was created (incl. the tag's messsage), i.e. the lines
above marked with (*)?

AHA,
   Dirk

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to show an annotated tag's timestamp?
  2008-08-12 19:40 How to show an annotated tag's timestamp? Dirk Süsserott
@ 2008-08-12 20:35 ` Mikael Magnusson
  2008-08-12 20:36 ` Marcus Griep
  2008-08-14 22:00 ` Alex Riesen
  2 siblings, 0 replies; 4+ messages in thread
From: Mikael Magnusson @ 2008-08-12 20:35 UTC (permalink / raw)
  To: Dirk Süsserott; +Cc: Git Mailing List

2008/8/12 Dirk Süsserott <newsletter@dirk.my1.cc>:
> I'd like to display *when* a certain annotated tag was
> created, i.e. its timestamp. I know two ways but am looking
> for a third one:
>
> Gitk: When clicking the yellow tag item (called 'testtag'
> in my case) it says:
> -------------
> object 9a04a26d3e5ea09be32934f50020d0286ebe7325
> type commit
> tag testtag
> tagger <tagger's name> <tagger's email-address> 1218568300 +0200
> -------------
> Well, I can convert 1218568300 into some human readable string,
> but that's not convenient.
>
> So I tried 'git show testtag'. It says:
> -------------
> (*) tag testtag
> (*) Tagger: <tagger's name> <tagger's email-address>
> (*) Date:   Tue Aug 12 21:17:17 2008 +0200
> (*)
> (*) testtag
> commit 0a62b3380d21bf65270490619da4a2efd6d2ca7a
> Author: ...
> Date:   Thu Apr 24 18:49:38 2008 +0200
> [...]
> -------------
>
> ... followed by the whole commit message and diff of the
> commit that's pointed to by the tag. That's too much for
> my purpose.
>
> Is there a way to output only when and by whom the tag
> was created (incl. the tag's messsage), i.e. the lines
> above marked with (*)?

% git show -s --pretty=format: v1.6.0-rc2
tag v1.6.0-rc2
Tagger: Junio C Hamano <gitster@pobox.com>
Date:   Wed Aug 6 14:00:41 2008 -0700

GIT 1.6.0-rc2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBImhD8wMbZpPMRm5oRAprGAJ4k+2+jTI9T/DTP9qwaUjfgIQFdEACdGjx0
af/UsRH5qpeRHQ8f3eCNd54=
=S9PO
-----END PGP SIGNATURE-----


-- 
Mikael Magnusson

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to show an annotated tag's timestamp?
  2008-08-12 19:40 How to show an annotated tag's timestamp? Dirk Süsserott
  2008-08-12 20:35 ` Mikael Magnusson
@ 2008-08-12 20:36 ` Marcus Griep
  2008-08-14 22:00 ` Alex Riesen
  2 siblings, 0 replies; 4+ messages in thread
From: Marcus Griep @ 2008-08-12 20:36 UTC (permalink / raw)
  To: Dirk Süsserott; +Cc: Git Mailing List

Try this:

git log --pretty=format:"Tagger: %an <%ae>%nDate: %ad%n%n%b" -1 v1.6.0-rc1

Dirk Süsserott wrote:
> I'd like to display *when* a certain annotated tag was
> created, i.e. its timestamp. I know two ways but am looking
> for a third one:
> 
> Gitk: When clicking the yellow tag item (called 'testtag'
> in my case) it says:
> -------------
> object 9a04a26d3e5ea09be32934f50020d0286ebe7325
> type commit
> tag testtag
> tagger <tagger's name> <tagger's email-address> 1218568300 +0200
> -------------
> Well, I can convert 1218568300 into some human readable string,
> but that's not convenient.
> 
> So I tried 'git show testtag'. It says:
> -------------
> (*) tag testtag
> (*) Tagger: <tagger's name> <tagger's email-address>
> (*) Date:   Tue Aug 12 21:17:17 2008 +0200
> (*)
> (*) testtag
> commit 0a62b3380d21bf65270490619da4a2efd6d2ca7a
> Author: ...
> Date:   Thu Apr 24 18:49:38 2008 +0200
> [...]
> -------------
> 
> ... followed by the whole commit message and diff of the
> commit that's pointed to by the tag. That's too much for
> my purpose.
> 
> Is there a way to output only when and by whom the tag
> was created (incl. the tag's messsage), i.e. the lines
> above marked with (*)?
> 
> AHA,
>   Dirk
> 
> -- 
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Marcus Griep
GPG Key ID: 0x5E968152
——
http://www.boohaunt.net
את.ψο´

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to show an annotated tag's timestamp?
  2008-08-12 19:40 How to show an annotated tag's timestamp? Dirk Süsserott
  2008-08-12 20:35 ` Mikael Magnusson
  2008-08-12 20:36 ` Marcus Griep
@ 2008-08-14 22:00 ` Alex Riesen
  2 siblings, 0 replies; 4+ messages in thread
From: Alex Riesen @ 2008-08-14 22:00 UTC (permalink / raw)
  To: =?ISO-8859-1?Q?Dirk_S=FCsserott_; +Cc: Git Mailing List

Dirk Süsserott, Tue, Aug 12, 2008 21:40:41 +0200:
>
> Is there a way to output only when and by whom the tag
> was created (incl. the tag's messsage), i.e. the lines
> above marked with (*)?
>

    ~/linux$ git cat-file -p v2.6.27-rc3
    object 30a2f3c60a84092c8084dfe788b710f8d0768cd4
    type commit
    tag v2.6.27-rc3
    tagger Linus Torvalds <torvalds@linux-foundation.org> Tue Aug 12 18:55:58 2008 -0700

    Linux 2.6.27-rc3
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.9 (GNU/Linux)

    iEYEABECAAYFAkiiPzMACgkQF3YsRnbiHLvxUACfU2zCcLV/CAWJpqvqIJSiQgRm
    9ewAnRbDZzqkDDkfJAgskpAwyTPfsFku
    =erLG
    -----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-08-14 22:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-12 19:40 How to show an annotated tag's timestamp? Dirk Süsserott
2008-08-12 20:35 ` Mikael Magnusson
2008-08-12 20:36 ` Marcus Griep
2008-08-14 22:00 ` Alex Riesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).