count_stash

Function count_stash 

Source
pub fn count_stash(repository: &mut Repository) -> Result<usize, Error>
Expand description

Count entries in stash.

Not sure why repository needs to be mut for this.

If there were somehow more than usize::MAX entries in stash, this would return usize::MAX.

ยงErrors

This will return git2::Error if there was an error getting status information from the repository.