On Oct 25, 7:34 pm, Jörg W Mittag <[email protected]> wrote:
> trans wrote:
> > Anyone know how to ask git for the commit date given tag?
>
> Do you mean commit date or author date?

Pretty sure I want commit date. What is author date?

> The best I can come up with is
>
>     # git show --format=format:%aD $TAG^{commit} | head -n1
>
> Which isn't exactly pretty.

  $ git show --pretty=format:%cD | head -n1

Thanks!

> For commit date, replace 'a' with 'c' in the format string. For other
> date formats, try 'i' (ISO8601) instead of 'D' (RfC2822)
>
> git help show is your friend.

Yes she is. I had no idea there were so many options! :-)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GitHub" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/github?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to