Re: Getting the commit that corresponds to a specific annotated tag
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 1, 2012, 22:21 UTC
- Message-ID
- <7v8vg61xn5.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <CA+mfgz0GqTKwOg6b=6rPUUnS6kwXZfCCYE7SOVHFcqrjRpOiTw@mail.gmail.com>
Adam Mercer <ramercer@gmail.com> writes:
Show 9 quoted lines
> On Fri, Jun 1, 2012 at 5:00 PM, Junio C Hamano <gitster@pobox.com> wrote:
>
>> I think you want
>>
>> git rev-parse $tag^{commit}
>>
>> It's kind of scary, though.
>
> Thanks, that does the trick. Why do you say it's scary?Didn't you say you were writing a Porcelain?