From: Adam Mercer <ramercer@gmail.com>
To: git@vger.kernel.org
Subject: Getting the commit that corresponds to a specific annotated tag
Date: Fri, 1 Jun 2012 16:47:43 -0500 [thread overview]
Message-ID: <CA+mfgz2=ZFBetSGv1Bkq6orBbpVTS1k0gLVm0nGoR1sUDkDwqQ@mail.gmail.com> (raw)
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
next reply other threads:[~2012-06-01 21:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-01 21:47 Adam Mercer [this message]
2012-06-01 22:00 ` Getting the commit that corresponds to a specific annotated tag Junio C Hamano
2012-06-01 22:11 ` Adam Mercer
2012-06-01 22:21 ` Junio C Hamano
2012-06-01 22:27 ` Adam Mercer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+mfgz2=ZFBetSGv1Bkq6orBbpVTS1k0gLVm0nGoR1sUDkDwqQ@mail.gmail.com' \
--to=ramercer@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).