git_repo_tags()¶
- audeer.git_repo_tags(*, v=None)[source]¶
Get a list of available git tags.
The tags are inferred by executing
git tagin the current folder. If the command fails, an empty list is returned.- Parameters
v (
bool) – ifTruetags start always withv, ifFalsethey never start withv, ifNonethe original tag names are returned- Return type
- Returns
list of tags
Examples
>>> audeer.git_repo_tags() ['v1.0.0', 'v1.1.0', 'v2.0.0']