Skip to content

Commit 2db45f1

Browse files
committed
Scaffold call to blame_file
1 parent 9797f41 commit 2db45f1

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
use std::ffi::OsStr;
22

3-
pub fn blame_file(_repo: gix::Repository, _file: &OsStr) -> anyhow::Result<()> {
4-
todo!()
3+
pub fn blame_file(repo: gix::Repository, _file: &OsStr) -> anyhow::Result<()> {
4+
let traverse: Vec<Result<gix::traverse::commit::Info, gix::traverse::commit::simple::Error>> = vec![];
5+
6+
if let Ok(_blame_entries) = gix::blame::blame_file(repo.objects, traverse, todo!(), todo!(), todo!(), todo!()) {
7+
todo!()
8+
} else {
9+
todo!()
10+
}
511
}

gix/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ gix-command = { version = "^0.3.9", path = "../gix-command", optional = true }
363363

364364
gix-worktree-stream = { version = "^0.15.0", path = "../gix-worktree-stream", optional = true }
365365
gix-archive = { version = "^0.15.0", path = "../gix-archive", default-features = false, optional = true }
366+
gix-blame = { version= "^0.0.0", path ="../gix-blame" }
366367

367368
# For communication with remotes
368369
gix-protocol = { version = "^0.45.3", path = "../gix-protocol", optional = true }

gix/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
pub use gix_actor as actor;
9696
#[cfg(feature = "attributes")]
9797
pub use gix_attributes as attrs;
98+
pub use gix_blame as blame;
9899
#[cfg(feature = "command")]
99100
pub use gix_command as command;
100101
pub use gix_commitgraph as commitgraph;

0 commit comments

Comments
 (0)