Struct git2::BlameOptions
source · pub struct BlameOptions { /* private fields */ }
Expand description
Blame options
Implementations§
source§impl BlameOptions
impl BlameOptions
sourcepub fn new() -> BlameOptions
pub fn new() -> BlameOptions
Initialize options
sourcepub fn track_copies_same_file(&mut self, opt: bool) -> &mut BlameOptions
pub fn track_copies_same_file(&mut self, opt: bool) -> &mut BlameOptions
Track lines that have moved within a file.
sourcepub fn track_copies_same_commit_moves(&mut self, opt: bool) -> &mut BlameOptions
pub fn track_copies_same_commit_moves(&mut self, opt: bool) -> &mut BlameOptions
Track lines that have moved across files in the same commit.
sourcepub fn track_copies_same_commit_copies(
&mut self,
opt: bool
) -> &mut BlameOptions
pub fn track_copies_same_commit_copies( &mut self, opt: bool ) -> &mut BlameOptions
Track lines that have been copied from another file that exists in the same commit.
sourcepub fn track_copies_any_commit_copies(&mut self, opt: bool) -> &mut BlameOptions
pub fn track_copies_any_commit_copies(&mut self, opt: bool) -> &mut BlameOptions
Track lines that have been copied from another file that exists in any commit.
sourcepub fn first_parent(&mut self, opt: bool) -> &mut BlameOptions
pub fn first_parent(&mut self, opt: bool) -> &mut BlameOptions
Restrict the search of commits to those reachable following only the first parents.
sourcepub fn use_mailmap(&mut self, opt: bool) -> &mut BlameOptions
pub fn use_mailmap(&mut self, opt: bool) -> &mut BlameOptions
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.
sourcepub fn ignore_whitespace(&mut self, opt: bool) -> &mut BlameOptions
pub fn ignore_whitespace(&mut self, opt: bool) -> &mut BlameOptions
Ignore whitespace differences.
sourcepub fn newest_commit(&mut self, id: Oid) -> &mut BlameOptions
pub fn newest_commit(&mut self, id: Oid) -> &mut BlameOptions
Setter for the id of the newest commit to consider.
sourcepub fn oldest_commit(&mut self, id: Oid) -> &mut BlameOptions
pub fn oldest_commit(&mut self, id: Oid) -> &mut BlameOptions
Setter for the id of the oldest commit to consider.
sourcepub fn min_line(&mut self, lineno: usize) -> &mut BlameOptions
pub fn min_line(&mut self, lineno: usize) -> &mut BlameOptions
The first line in the file to blame.
sourcepub fn max_line(&mut self, lineno: usize) -> &mut BlameOptions
pub fn max_line(&mut self, lineno: usize) -> &mut BlameOptions
The last line in the file to blame.