generate_changelog.git_ops.get_repo

get_repo#

generate_changelog.git_ops.get_repo(repo_path=None)[source]#

Get the git repo from a specific path or the current working directory.

Parameters:

repo_path (Optional[str]) – The path to the directory with git repository. If None, the current working directory is used.

Return type:

Repo

Returns:

Repository object