Struct git2::DiffStats [] [src]

pub struct DiffStats {
    // some fields omitted
}

Structure describing a hunk of a diff.

Methods

impl DiffStats
[src]

fn files_changed(&self) -> usize

Get the total number of files chaned in a diff.

fn insertions(&self) -> usize

Get the total number of insertions in a diff

fn deletions(&self) -> usize

Get the total number of deletions in a diff

fn to_buf(&self, format: DiffStatsFormat, width: usize) -> Result<BufError>

Print diff statistics to a Buf

Trait Implementations

impl Drop for DiffStats
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more