Struct git2::DiffStats [−][src]
pub struct DiffStats { /* fields omitted */ }
Structure describing a hunk of a diff.
Methods
impl DiffStats
[src]
impl DiffStats
pub fn files_changed(&self) -> usize
[src]
pub fn files_changed(&self) -> usize
Get the total number of files chaned in a diff.
pub fn insertions(&self) -> usize
[src]
pub fn insertions(&self) -> usize
Get the total number of insertions in a diff
pub fn deletions(&self) -> usize
[src]
pub fn deletions(&self) -> usize
Get the total number of deletions in a diff
pub fn to_buf(
&self,
format: DiffStatsFormat,
width: usize
) -> Result<Buf, Error>
[src]
pub fn to_buf(
&self,
format: DiffStatsFormat,
width: usize
) -> Result<Buf, Error>
Print diff statistics to a Buf