Skip to content

Is it possible to have the result of git rev-list --count in a variable? #1345

@chrbkr

Description

@chrbkr

In our project, we switched from SVN to git. The versioning scheme was <major>.<minor>.<patch>.<revision>.

For continuity, I wanted to keep this scheme, by getting the equivalent of the SVN revision via git rev-list --count HEAD.

Is there a variable in GitVersion I can use for this? Or can this command be invoked in some other way when using GitVersionTask?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions