exscm v0.0.1 Exscm.Git

Helper module which provides functions to generate a version string from current git hash

Summary

Functions

Gets the output from git describe --tags --long --match '*.*' and returns a version string

Functions

git_to_version(revision)

Gets the output from git describe --tags --long --match '*.*' and returns a version string.

Tags have to be of the form v1.0.3 or 1.0.3. The leading ‘v’ will be stripped. The version also includes part of the git hash and a string giving the number of revisions after the latest tag.

Example

iex> Exscm.Git.git_to_version(“v2.4.0-26-g743234”) “2.4.1.dev26+ng743234”