module documentation
(source)

Git utilities.
Function git​_revision Get the SHA-1 of the HEAD of a git repository.
Function has​_extra​_files Check whether a git repository has untracked files.
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): (source)
Get the SHA-1 of the HEAD of a git repository.
Parameters
dir:strUndocumented
Returns
bytesUndocumented
def has_extra_files(dir): (source)
Check whether a git repository has untracked files.
Parameters
dir:strUndocumented
Returns
boolUndocumented
def have_git(): (source)
Can we run the git executable?
Returns
boolUndocumented
def is_dirty(dir): (source)
Check whether a git repository has uncommitted changes.
Parameters
dir:strUndocumented
Returns
boolUndocumented
def is_git_repo(dir): (source)
Is the given directory version-controlled with git?
Parameters
dir:strUndocumented
Returns
boolUndocumented