mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-08-16 07:10:03 +00:00
Only include v prefix in tag if has_v
This commit is contained in:
parent
99a61b1bc5
commit
5b61d7d723
1 changed files with 2 additions and 2 deletions
|
@ -51,8 +51,8 @@ class SemverTag:
|
|||
|
||||
@override
|
||||
def __str__(self) -> str:
|
||||
"""Return tag in standard 'vX.Y.Z' format."""
|
||||
return f"v{self.major}.{self.minor}.{self.patch}"
|
||||
"""Return tag in standard 'vX.Y.Z' format; the v can be omitted."""
|
||||
return f"{self.has_v and 'v' or ''}{self.major}.{self.minor}.{self.patch}"
|
||||
|
||||
|
||||
def run_git(*args: str) -> str:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue