Skip to content

Commit fb86e82

Browse files
committed
make it easy to display blamed lines
Currently it's not quite clear where to get them from.
1 parent 35f94d4 commit fb86e82

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

crate-status.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,9 @@ Check out the [performance discussion][gix-diff-performance] as well.
365365

366366
* [ ] commit-annotations for a single file
367367
- [ ] progress
368-
- [ ] interruptability
368+
- [ ] interruptibility
369369
- [ ] streaming
370+
- [ ] support for worktree changes (creates virtual commit on top of `HEAD`)
370371
* [x] API documentation
371372
* [ ] Examples
372373

gix-blame/src/lib.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
//! A crate to implement an algorithm to annotate lines in tracked files with the commits that changed them.
2+
//!
3+
//! ### Terminology
4+
//!
5+
//! * **Original File**
6+
//! - The file as it exists in `HEAD`.
7+
//! - the initial state with all lines that we need to associate with a *Blamed File*.
8+
//! * **Blamed File**
9+
//! - A file at a version (i.e. commit) that introduces hunks into the final 'image'.
10+
//! * **Suspects**
11+
//! - The versions of the files that can contain hunks that we could use in the final 'image'
12+
//! - multiple at the same time as the commit-graph may split up.
13+
//! - turns into *Blamed File* once we have found an association into the *Original File*.
14+
//! - every [`UnblamedHunk`] can have multiple suspects of which we find the best match.
215
#![deny(rust_2018_idioms)]
316
#![forbid(unsafe_code)]
417

@@ -14,6 +27,7 @@ use gix_object::FindExt;
1427

1528
#[derive(Clone, Copy, Debug, PartialEq)]
1629
pub enum Offset {
30+
/// The amount of lines to add to the original range in
1731
Added(u32),
1832
Deleted(u32),
1933
}

0 commit comments

Comments
 (0)