From: clime <clime7@gmail.com>
To: Git List <git@vger.kernel.org>
Subject: parsing `git cat-file tag <tag-id>`
Date: Thu, 5 Mar 2020 08:24:27 +0100 [thread overview]
Message-ID: <CAGqZTUv=KTtm454mSs47hmLJd-GvXxhkypPqqgkabo3=6moCbg@mail.gmail.com> (raw)
Hello, I need to parse output of `git cat-file tag <tag-id>` in bash
to get information from the (annotated) tag like author, email, date,
subject, body. Everyone has ever done something similar?
What would be the recommended tool in bash?
Originally, my problem is that I have tag-id and I would like to
directly from tag-id by calling a git command the individual fields
from the tag content. I don't want any <tag-id> to <tag-name>
translation first and i cannot use for-each-ref --points-at=<tag-id>
because it's not in older versions of git. Thank you very much!
clime
reply other threads:[~2020-03-05 7:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAGqZTUv=KTtm454mSs47hmLJd-GvXxhkypPqqgkabo3=6moCbg@mail.gmail.com' \
--to=clime7@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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).