Function git_status_vars::count_changes
source · pub fn count_changes(repository: &Repository) -> Result<ChangeCounters, Error>
Expand description
Count changes in the working tree and index (staged area) of a repository.
§Errors
This will return git2::Error
if there was an error getting status
information from the repository.