atomica.utils.fast_gitinfo

atomica.utils.fast_gitinfo(path)[source]

Retrieve git info

This function reads git branch and commit information from a .git directory. Given a path, it will check for a .git directory. If the path doesn’t contain that directory, it will search parent directories for .git until it finds one. Then, the current information will be parsed.

Parameters:

path – A folder either containing a .git directory, or with a parent that contains a .git directory