codacy / git-version

Git versioning used in Codacy
Apache License 2.0
135 stars 43 forks source link

Feature/latest tag #42

Closed paulopontesm closed 3 years ago

andreaTP commented 3 years ago

what's the use case? isn't the result of git describe --abbrev=0 --tags that you are looking for?

DReigada commented 3 years ago

what's the use case? isn't the result of git describe --abbrev=0 --tags that you are looking for?

Not really. you can have tags that were manually tagged and are not part of the versioning workflow. You would have to filter the tags with a regex in the git command. Which means you would need logic external to the tool to find the previous tag. This makes it easier and more consistent to find the previous version