Skip to main content

get_git_changeset

Return a numeric identifier of the latest git changeset.

The result is the UTC timestamp of the changeset in YYYYMMDDHHMMSS format. This value isn't guaranteed to be unique, but collisions are very unlikely, so it's sufficient for generating the development version numbers.

def get_git_changeset() - > string

Return a numeric identifier of the latest git changeset. The result is the UTC timestamp of the changeset in YYYYMMDDHHMMSS format. This value isn't guaranteed to be unique, but collisions are very unlikely, so it's sufficient for generating the development version numbers.

Returns

TypeDescription
stringThe UTC timestamp of the latest git commit in YYYYMMDDHHMMSS format, or null if the repository cannot be found or the timestamp is invalid.