use this script to print all tags that are in this thread
git log --decorate=full --simplify-by-decoration --pretty=oneline HEAD | \
sed -r -e 's#^[^\(]*\(([^\)]*)\).*$#\1#' \
-e 's#,#\n#g' | \
grep 'tag:' | \
sed -r -e 's#[[:space:]]*tag:[[:space:]]*##'
A script is just 1 long line, folded to fit in a message box.
Explanation:git log
// Print out the full ref name
// Select all the commits that are referred by some branch or tag
//
// Basically its the data you are looking for
//
// print each commit as single line
// start from the current commit
HEAD
// The rest of the script are unix command to print the results in a nice
// way, extracting the tag from the output line generated by the
//
source
share