Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Getting the date of a tag?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
trans  
View profile  
 More options Oct 25 2009, 6:30 pm
From: trans <transf...@gmail.com>
Date: Sun, 25 Oct 2009 15:30:03 -0700 (PDT)
Local: Sun, Oct 25 2009 6:30 pm
Subject: Getting the date of a tag?
Anyone know how to ask git for the commit date given tag?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
trans  
View profile  
 More options Oct 25 2009, 7:52 pm
From: trans <transf...@gmail.com>
Date: Sun, 25 Oct 2009 16:52:53 -0700 (PDT)
Local: Sun, Oct 25 2009 7:52 pm
Subject: Re: Getting the date of a tag?
Oh it was of course too obvious:

  git show <tagname>

Thanks anyway.

On Oct 25, 6:30 pm, trans <transf...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jörg W Mittag  
View profile  
 More options Oct 25 2009, 7:34 pm
From: Jörg W Mittag <joergwmit...@googlemail.com>
Date: Mon, 26 Oct 2009 00:34:19 +0100
Local: Sun, Oct 25 2009 7:34 pm
Subject: Re: Getting the date of a tag?

trans wrote:
> Anyone know how to ask git for the commit date given tag?

Do you mean commit date or author date?

The best I can come up with is

    # git show --format=format:%aD $TAG^{commit} | head -n1

Which isn't exactly pretty.

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.

jwm


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
trans  
View profile  
 More options Oct 25 2009, 11:52 pm
From: trans <transf...@gmail.com>
Date: Sun, 25 Oct 2009 20:52:19 -0700 (PDT)
Local: Sun, Oct 25 2009 11:52 pm
Subject: Re: Getting the date of a tag?

On Oct 25, 7:34 pm, Jörg W Mittag <joergwmit...@googlemail.com> 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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »