From d275ac08f3715ee34d4a1cd57f9478f1b8b9e1d1 Mon Sep 17 00:00:00 2001 From: Jonathan Teran Carballo Date: Sun, 17 May 2026 11:37:04 -0300 Subject: [PATCH] feature: include revlist count in version tag when skipping bump --- src/git_flow/command/tag.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/git_flow/command/tag.py b/src/git_flow/command/tag.py index c3b70e0..9a96526 100644 --- a/src/git_flow/command/tag.py +++ b/src/git_flow/command/tag.py @@ -104,5 +104,7 @@ def get_next_tag_from_commits(commits: list[str], branch: str) -> str | None: patch = 0 elif increment == SEMVER_PATCH: patch += 1 + elif increment == SEMVER_SKIP: + suffix = "-r" + Git("rev-list", "HEAD", count=True).firstline() return None if increment == SEMVER_SKIP else f"v{major}.{minor}.{patch}{suffix}"