Skip to content

Commit f37e9c6

Browse files
committed
feat: Add blame plumbing crate to the top-level.
For now, it doesn't come with a simplified `gix` API though.
1 parent 1272110 commit f37e9c6

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
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.

gix/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ blob-diff = ["gix-diff/blob", "attributes"]
141141
## Add functions to specifically merge files, using the standard three-way merge that git offers.
142142
blob-merge = ["dep:gix-merge", "gix-merge/blob", "attributes"]
143143

144+
## Add blame command similar to `git blame`.
145+
blame = ["dep:gix-blame"]
146+
144147
## Make it possible to turn a tree into a stream of bytes, which can be decoded to entries and turned into various other formats.
145148
worktree-stream = ["gix-worktree-stream", "attributes"]
146149

@@ -368,6 +371,7 @@ gix-command = { version = "^0.3.9", path = "../gix-command", optional = true }
368371

369372
gix-worktree-stream = { version = "^0.15.0", path = "../gix-worktree-stream", optional = true }
370373
gix-archive = { version = "^0.15.0", path = "../gix-archive", default-features = false, optional = true }
374+
gix-blame = { version= "^0.0.0", path ="../gix-blame", optional = true }
371375

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

gix/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@
9595
pub use gix_actor as actor;
9696
#[cfg(feature = "attributes")]
9797
pub use gix_attributes as attrs;
98+
#[cfg(feature = "blame")]
99+
pub use gix_blame as blame;
98100
#[cfg(feature = "command")]
99101
pub use gix_command as command;
100102
pub use gix_commitgraph as commitgraph;

0 commit comments

Comments
 (0)