{"thread":{"id":"30682","subject":"Getting the commit that corresponds to a specific annotated tag","startedAt":"2012-06-01T21:47:43Z","lastAt":"2012-06-01T22:27:35Z","messageCount":5,"participants":["Adam Mercer","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"192697","messageId":"CA+mfgz2=ZFBetSGv1Bkq6orBbpVTS1k0gLVm0nGoR1sUDkDwqQ@mail.gmail.com","threadId":"30682","inReplyTo":null,"subject":"Getting the commit that corresponds to a specific annotated tag","fromName":"Adam Mercer","fromEmail":"ramercer@gmail.com","sentAt":"2012-06-01T21:47:43Z","receivedAt":"2012-06-01T21:47:43Z","isPatch":false,"sender":{"key":"ramercer@gmail.com","avatar":"https://gravatar.com/avatar/16dc719817f62b75075d529ce4ea992ee82bb1a08e45a3029797f39223d6ee64?d=mp&s=160"},"body":"Hi\n\nFor some porcelain I'm writing I need to determine the commit that\ncorresponds to a given annotated tag, so far I have the following:\n\n$ git cat-file tag <tag_name> | grep object | awk '{print $2}'\n\nIs there already some pluming that performs this task?\n\nCheers\n\nAdam\n"},{"id":"192698","messageId":"7vd35i1ymz.fsf@alter.siamese.dyndns.org","threadId":"30682","inReplyTo":"CA+mfgz2=ZFBetSGv1Bkq6orBbpVTS1k0gLVm0nGoR1sUDkDwqQ@mail.gmail.com","subject":"Re: Getting the commit that corresponds to a specific annotated tag","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2012-06-01T22:00:04Z","receivedAt":"2012-06-01T22:00:04Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Adam Mercer <ramercer@gmail.com> writes:\n\n> For some porcelain I'm writing I need to determine the commit that\n> corresponds to a given annotated tag, so far I have the following:\n>\n> $ git cat-file tag <tag_name> | grep object | awk '{print $2}'\n>\n> Is there already some pluming that performs this task?\n\nI think you want\n\n\tgit rev-parse $tag^{commit}\n\nIt's kind of scary, though.\n"},{"id":"192700","messageId":"CA+mfgz0GqTKwOg6b=6rPUUnS6kwXZfCCYE7SOVHFcqrjRpOiTw@mail.gmail.com","threadId":"30682","inReplyTo":"7vd35i1ymz.fsf@alter.siamese.dyndns.org","subject":"Re: Getting the commit that corresponds to a specific annotated tag","fromName":"Adam Mercer","fromEmail":"ramercer@gmail.com","sentAt":"2012-06-01T22:11:12Z","receivedAt":"2012-06-01T22:11:12Z","isPatch":false,"sender":{"key":"ramercer@gmail.com","avatar":"https://gravatar.com/avatar/16dc719817f62b75075d529ce4ea992ee82bb1a08e45a3029797f39223d6ee64?d=mp&s=160"},"body":"On Fri, Jun 1, 2012 at 5:00 PM, Junio C Hamano <gitster@pobox.com> wrote:\n\n> I think you want\n>\n>        git rev-parse $tag^{commit}\n>\n> It's kind of scary, though.\n\nThanks, that does the trick. Why do you say it's scary?\n\nCheers\n\nAdam\n"},{"id":"192701","messageId":"7v8vg61xn5.fsf@alter.siamese.dyndns.org","threadId":"30682","inReplyTo":"CA+mfgz0GqTKwOg6b=6rPUUnS6kwXZfCCYE7SOVHFcqrjRpOiTw@mail.gmail.com","subject":"Re: Getting the commit that corresponds to a specific annotated tag","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2012-06-01T22:21:34Z","receivedAt":"2012-06-01T22:21:34Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Adam Mercer <ramercer@gmail.com> writes:\n\n> On Fri, Jun 1, 2012 at 5:00 PM, Junio C Hamano <gitster@pobox.com> wrote:\n>\n>> I think you want\n>>\n>>        git rev-parse $tag^{commit}\n>>\n>> It's kind of scary, though.\n>\n> Thanks, that does the trick. Why do you say it's scary?\n\nDidn't you say you were writing a Porcelain?\n"},{"id":"192702","messageId":"CA+mfgz1DOzB6=m3uLBtAULRZd7TR90M9mDDFFK2dxB+RpWC9kw@mail.gmail.com","threadId":"30682","inReplyTo":"7v8vg61xn5.fsf@alter.siamese.dyndns.org","subject":"Re: Getting the commit that corresponds to a specific annotated tag","fromName":"Adam Mercer","fromEmail":"ramercer@gmail.com","sentAt":"2012-06-01T22:27:35Z","receivedAt":"2012-06-01T22:27:35Z","isPatch":false,"sender":{"key":"ramercer@gmail.com","avatar":"https://gravatar.com/avatar/16dc719817f62b75075d529ce4ea992ee82bb1a08e45a3029797f39223d6ee64?d=mp&s=160"},"body":"On Fri, Jun 1, 2012 at 5:21 PM, Junio C Hamano <gitster@pobox.com> wrote:\n\n> Didn't you say you were writing a Porcelain?\n\nAhh, I get you. Porcelain was probably the wrong word...\n\nCheers\n\nAdam\n"}]}