git_interface.rev_list
Methods for using the ‘rev-list’ command
- async git_interface.rev_list.get_commit_count(git_repo, branch=None)
Get a repos commit count
- param git_repo
Path to the repo
- param branch
Branch to filter, defaults to None
- raises UnknownRevisionException
Unknown tree_ish
- raises GitException
Error to do with git
- return
The commit count
- Parameters
git_repo (Union[Path, str]) –
branch (Optional[str]) –
- Return type
Coroutine[Any, Any, int]
- async git_interface.rev_list.get_disk_usage(git_repo, branch=None)
Get a size of the repo
- param git_repo
Path to the repo
- param branch
Branch to filter, defaults to None
- raises UnknownRevisionException
Unknown tree_ish
- raises GitException
Error to do with git
- return
The size of the repo
- Parameters
git_repo (Union[Path, str]) –
branch (Optional[str]) –
- Return type
Coroutine[Any, Any, int]
- async git_interface.rev_list.get_rev_list(git_repo, branch=None)
Get a repos revisions
- param git_repo
Path to the repo
- param branch
Branch to filter, defaults to None
- raises UnknownRevisionException
Unknown tree_ish
- raises GitException
Error to do with git
- return
The repos revisions
- Parameters
git_repo (Union[Path, str]) –
branch (Optional[str]) –
- Return type
Coroutine[Any, Any, list[str]]