Skip to main content

Module git

Module git 

Source
Expand description

Git metadata helpers.

Retrieves the current commit hash and detects uncommitted changes in the project directory. Used to tag deployments with source-control context.

Functionsยง

get_git_commit
Get the current git commit hash of the project directory.
is_dirty
Returns true if the repo contains any uncommitted or unstaged changes.