git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* parsing `git cat-file tag <tag-id>`
@ 2020-03-05  7:24 clime
  0 siblings, 0 replies; only message in thread
From: clime @ 2020-03-05  7:24 UTC (permalink / raw)
  To: Git List

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-03-05  7:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-05  7:24 parsing `git cat-file tag <tag-id>` clime

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).