I want git to list all tags along with the full annotation or commit message. Something like this is close:
git tag -n5
This does exactly w
git tag -l --format='%(contents)'
or
git for-each-ref refs/tags/ --format='%(contents)'
will output full annotation message for every tag (including signature if its signed).
%(contents:subject) will output only first line%(contents:body) will output annotation without first line and signature (useful text only)%(contents:signature) will output only PGP-signatureSee more in man git-for-each-ref “Field names” section.