Struct git2::Blame [] [src]

pub struct Blame<'repo> {
    // some fields omitted
}

Opaque structure to hold blame results.

Methods

impl<'repo> Blame<'repo>
[src]

fn len(&self) -> usize

Gets the number of hunks that exist in the blame structure.

fn get_index(&self, index: usize) -> Option<BlameHunk>

Gets the blame hunk at the given index.

fn get_line(&self, lineno: usize) -> Option<BlameHunk>

Gets the hunk that relates to the given line number in the newest commit.

fn iter(&self) -> BlameIter

Returns an iterator over the hunks in this blame.

Trait Implementations

impl<'repo> Drop for Blame<'repo>
[src]

fn drop(&mut self)

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