pub struct BlamePathEntry {
pub source_file_path: BString,
pub previous_source_file_path: Option<BString>,
pub commit_id: ObjectId,
pub blob_id: ObjectId,
pub previous_blob_id: ObjectId,
pub parent_index: usize,
}Expand description
Represents a change during history traversal for blame. It is supposed to capture enough information to allow reconstruction of the way a blame was performed, i. e. the path the history traversal, combined with repeated diffing of two subsequent states in this history, has taken.
This is intended for debugging purposes.
Fields§
§source_file_path: BStringThe path to the Source File in the blob after the change.
previous_source_file_path: Option<BString>The path to the Source File in the blob before the change. Allows
detection of renames. None for root commits.
commit_id: ObjectIdThe commit id associated with the state after the change.
blob_id: ObjectIdThe blob id associated with the state after the change.
previous_blob_id: ObjectIdThe blob id associated with the state before the change.
parent_index: usizeWhen there is more than one BlamePathEntry for a commit, this indicates to which parent
commit the change is related.
Trait Implementations§
Source§impl Clone for BlamePathEntry
impl Clone for BlamePathEntry
Source§fn clone(&self) -> BlamePathEntry
fn clone(&self) -> BlamePathEntry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more