Skip to content

Commit d22965f

Browse files
committed
Refactoring of the blame operation logic
This commit includes a major overhaul of the blame operation logic. A new `BlameState` struct and a `BlameProcessor` struct were introduced to cleanly encapsulate different parts of the operation. The `BlameState` struct collects information about the blame operation as it is happening, while the `BlameProcessor` struct carries the bulk of the blame operation logic.
1 parent de13b16 commit d22965f

File tree

2 files changed

+468
-307
lines changed

2 files changed

+468
-307
lines changed

gix-blame/src/error.rs

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ pub enum Error {
1717
/// The commit whose tree didn't contain `file_path`.
1818
commit_id: gix_hash::ObjectId,
1919
},
20+
#[error("No `BlameState` found, so no state to start blaming from")]
21+
BlameStateNotSet,
2022
#[error("Couldn't find commit or tree in the object database")]
2123
FindObject(#[from] gix_object::find::Error),
2224
#[error("Could not find existing blob or commit")]

0 commit comments

Comments
 (0)