Perhaps adding a git jinja function that returns something akin to git describe --tags --dirty.
$ git describe --tags --dirty
v3.15.0a2-242-g453e9eebd5e-dirty
I would like to have the latest git tag, the current commit if HEAD is not the same as the tag, and the dirty state.