Skip to content

Add a way to determine the package version from git w/ new commits and dirty state #2047

@FFY00

Description

@FFY00

Perhaps adding a git jinja function that returns something akin to git describe --tags --dirty.

$ git describe --tags --dirty
v3.15.0a2-242-g453e9eebd5e-dirty

I would like to have the latest git tag, the current commit if HEAD is not the same as the tag, and the dirty state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions