module documentation

Git utilities.

Function git_revision Get the SHA-1 of the HEAD of a git repository.
Function have_git Can we run the git executable?
Function is_dirty Check whether a git repository has uncommitted changes.
Function is_git_repo Is the given directory version-controlled with git?
def git_revision(dir: str) -> bytes: (source)

Get the SHA-1 of the HEAD of a git repository.

def have_git() -> bool: (source)

Can we run the git executable?

def is_dirty(dir: str) -> bool: (source)

Check whether a git repository has uncommitted changes.

def is_git_repo(dir: str) -> bool: (source)

Is the given directory version-controlled with git?