INNER CODE UNIT · Python

list_commits_since_tag

fluxerapp/flutter_client · .github/scripts/append_release_direct_commits.py:123

def list_commits_since_tag(previous_tag: str | None, commitish: str) -> list[tuple[str, str]]:
    if previous_tag is not None:
        revision_range = f"{previous_tag}..{commitish}"
    else:
        revision_range = commitish
    completed = subprocess.run(
        [
            "git",
            "log",
            revision_range,
            "--no-merges",
            "--format=%H%x1f%s",
        ],
        check=True,
        text=True,
        capture_output=True,
    )
    commits: list[tuple[str, str]] = []

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…