> Okay this one is (perhaps) a little more challenging. The tag date is
> the date the tag was created. But to me the tag date needs to be the
> date of the last commit made upto that tag. Right now I extract the
> date via:
>
>   $ tag show 1.0.0
>
> Which gives me a header:
>
>   tag 1.0.0
>   Tagger: 7rans <transf...@gmail.com>
>   Date:   Wed May 26 09:48:42 2010 -0400
>
> Anyone have a good way to do likewise, but get the date of the last
> commit as of the tag, instead of the date the tag was created?

I suspect it's as simple as using
$ git show 1.0.0^
that is, referencing the first (and only) parent of the tag object.
Refer to the "SPECIFYING REVISIONS" section of git rev-parse manual
page.

Possibly as soon as you understand that all Git commits and annotaned
tags link to each other using object names (hashes), this idea becomes
apparent.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to