Is there a way to get the tag associated with a commit number in Git?
For releases I usually tag with something like v1.1.0. During my build script I am creating a fwVersion.c file that contains the current git info. Currently, I have commit, and branch info in the file, but I would like to add the tag.
Is this possible?
Thanks