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