Would shelling out to git log --tags --simplify-by-decoration --pretty="format:%d" make your life a little easier here?