git-tag

Get tags of a commit

Get tags of a commit Question: Given an object of GitPython Commit, how can I get the tags related to this commit? I’d enjoy having something like: next(repo.iter_commits()).tags Asked By: Uko || Source Answers: The problem is that tags point to commits, not the other way around. To get this information would require a linear …

Total answers: 2