{"thread":{"id":"52938","subject":"parsing `git cat-file tag <tag-id>`","startedAt":"2020-03-05T07:24:42Z","lastAt":"2020-03-05T07:24:42Z","messageCount":1,"participants":["clime"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"392879","messageId":"CAGqZTUv=KTtm454mSs47hmLJd-GvXxhkypPqqgkabo3=6moCbg@mail.gmail.com","threadId":"52938","inReplyTo":null,"subject":"parsing `git cat-file tag <tag-id>`","fromName":"clime","fromEmail":"clime7@gmail.com","sentAt":"2020-03-05T07:24:27Z","receivedAt":"2020-03-05T07:24:42Z","isPatch":false,"sender":{"key":"clime7@gmail.com","avatar":"https://gravatar.com/avatar/d99ae46a5b0f57415bb74fc6c8ecd7eec304ff769f298c3be00fabf961b215ff?d=mp&s=160"},"body":"Hello, I need to parse output of `git cat-file tag <tag-id>` in bash\nto get information from the (annotated) tag like author, email, date,\nsubject, body. Everyone has ever done something similar?\n\nWhat would be the recommended tool in bash?\n\nOriginally, my problem is that I have tag-id and I would like to\ndirectly from tag-id by calling a git command the individual fields\nfrom the tag content. I don't want any <tag-id> to <tag-name>\ntranslation first and i cannot use for-each-ref --points-at=<tag-id>\nbecause it's not in older versions of git. Thank you very much!\n\nclime\n"}]}