ci_diff_helper.git_tools module

Helpers for interacting with git.

ci_diff_helper.git_tools.get_checked_in_files()[source]

Gets a list of files in the current git repository.

Effectively runs:

$ git ls-files ${GIT_ROOT}

and then finds the absolute path for each file returned.

Return type:list
Returns:List of all filenames checked into.
ci_diff_helper.git_tools.git_root()[source]

Return the root directory of the current git checkout.

Return type:str
Returns:Filesystem path to git checkout root.