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 (Path | str)

  • branch (str | None)

Return type:

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 (Path | str)

  • branch (str | None)

Return type:

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 (Path | str)

  • branch (str | None)

Return type:

list[str]