gfdlvitals.util.git module

Module for working with top-level git repository

gfdlvitals.util.git.is_clean(path)

Determines if a git repository is clean

Parameters:

path (str, path-like) – Path to git repository

Returns:

True if clean, False if modified

Return type:

bool

gfdlvitals.util.git.retrieve_commit(path)

Returns current git commit

Parameters:

path (str, path-like) – Path to git repository

Returns:

Git commit hash

Return type:

str