Currently, I'm using this command to show the contents of the annotated tag:
git tag --list --format='%(contents)' name-of-tag
Which worked fine until we started GPG signing the annotated tags. Now the result is:
<tag contents>
-----BEGIN PGP SIGNATURE-----
<signature contents>
-----END PGP SIGNATURE-----
Effectively, the signature is appended to the tag contents! How do I filter it out in one simple command?
What sort of works:
git tag --list --format='%(contents:subject)' tag-name
But only until the first empty line. What if I also want empty lines in my tag?
Resorting to shell scripting would not be ideal since we execute the commands with GitPython.