[go: up one dir, main page]

Struct git2::BlameOptions[][src]

pub struct BlameOptions { /* fields omitted */ }
Expand description

Blame options

Implementations

impl BlameOptions[src]

pub fn new() -> BlameOptions[src]

Initialize options

pub fn track_copies_same_file(&mut self, opt: bool) -> &mut BlameOptions[src]

Track lines that have moved within a file.

pub fn track_copies_same_commit_moves(&mut self, opt: bool) -> &mut BlameOptions[src]

Track lines that have moved across files in the same commit.

pub fn track_copies_same_commit_copies(
    &mut self,
    opt: bool
) -> &mut BlameOptions
[src]

Track lines that have been copied from another file that exists in the same commit.

pub fn track_copies_any_commit_copies(&mut self, opt: bool) -> &mut BlameOptions[src]

Track lines that have been copied from another file that exists in any commit.

pub fn first_parent(&mut self, opt: bool) -> &mut BlameOptions[src]

Restrict the search of commits to those reachable following only the first parents.

pub fn use_mailmap(&mut self, opt: bool) -> &mut BlameOptions[src]

Use mailmap file to map author and committer names and email addresses to canonical real names and email addresses. The mailmap will be read from the working directory, or HEAD in a bare repository.

pub fn ignore_whitespace(&mut self, opt: bool) -> &mut BlameOptions[src]

Ignore whitespace differences.

pub fn newest_commit(&mut self, id: Oid) -> &mut BlameOptions[src]

Setter for the id of the newest commit to consider.

pub fn oldest_commit(&mut self, id: Oid) -> &mut BlameOptions[src]

Setter for the id of the oldest commit to consider.

pub fn min_line(&mut self, lineno: usize) -> &mut BlameOptions[src]

The first line in the file to blame.

pub fn max_line(&mut self, lineno: usize) -> &mut BlameOptions[src]

The last line in the file to blame.

Trait Implementations

impl Default for BlameOptions[src]

fn default() -> Self[src]

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.