ninjecto.utils.git¶Utilities for git repositories.
find_git():
Find the git executable.find_tag():
Find the tag for the current revision.find_root():
Find the root of the git repository.find_branch():
Find the current branch of the git repository.find_revision():
Find the current revision (short hash) of the git repository.find_name():
Find the name of the author of the current revision.find_email():
Find the email of the author of the current revision.find_subject():
Find the commit message subject of current revision.find_body():
Find the commit message body of current revision.find_date():
Find the commit date in strict ISO 8601 format.ninjecto.utils.git.find_git()¶Find the git executable.
ninjecto.utils.git.find_tag(git=None, directory='.')¶Find the tag for the current revision.
find_git().directory instead of
the current working directory.The name of the tag pointing to the current revision. Raises GitError if no tag is found.
ninjecto.utils.git.find_root(git=None, directory='.')¶Find the root of the git repository.
find_git().directory instead of
the current working directory.Absolute path to root of the git repository.
ninjecto.utils.git.find_branch(git=None, directory='.')¶Find the current branch of the git repository.
find_git().directory instead of
the current working directory.The name of the branch the git repository is currently on.
ninjecto.utils.git.find_revision(git=None, directory='.')¶Find the current revision (short hash) of the git repository.
find_git().directory instead of
the current working directory.The short version of the revision the git repository is currently on.
ninjecto.utils.git.find_name(git=None, directory='.')¶Find the name of the author of the current revision.
find_git().directory instead of
the current working directory.The name of the author of the current revision.
ninjecto.utils.git.find_email(git=None, directory='.')¶Find the email of the author of the current revision.
find_git().directory instead of
the current working directory.The email of the author of the current revision.
ninjecto.utils.git.find_subject(git=None, directory='.')¶Find the commit message subject of current revision.
find_git().directory instead of
the current working directory.The commit message subject of current revision.
ninjecto.utils.git.find_body(git=None, directory='.')¶Find the commit message body of current revision.
find_git().directory instead of
the current working directory.The commit message body of current revision.
ninjecto.utils.git.find_date(git=None, directory='.')¶Find the commit date in strict ISO 8601 format.
find_git().directory instead of
the current working directory.The commit date in strict ISO 8601 format.