Getting the commit that corresponds to a specific annotated tag
- From
Adam Mercer <ramercer@gmail.com>
- Date
- Jun 1, 2012, 21:47 UTC
- Message-ID
- <CA+mfgz2=ZFBetSGv1Bkq6orBbpVTS1k0gLVm0nGoR1sUDkDwqQ@mail.gmail.com>
Hi
For some porcelain I'm writing I need to determine the commit that corresponds to a given annotated tag, so far I have the following:
$ git cat-file tag <tag_name> | grep object | awk '{print $2}'Is there already some pluming that performs this task?
Cheers
Adam