Skip to content

Commit

Permalink
feat: Add blame plumbing crate to the top-level.
Browse files Browse the repository at this point in the history
For now, it doesn't come with a simplified `gix` API though.
  • Loading branch information
cruessler authored and Byron committed Dec 23, 2024
1 parent d27adf7 commit 25efbfb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
9 changes: 5 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions gix-blame/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ rust-version = "1.65"
doctest = false

[dependencies]
gix-diff = { version = "^0.48.0", path = "../gix-diff", default-features = false, features = ["blob"] }
gix-diff = { version = "^0.49.0", path = "../gix-diff", default-features = false, features = ["blob"] }
gix-object = { version = "^0.46.0", path = "../gix-object" }
gix-hash = { version = "^0.15.0", path = "../gix-hash" }
gix-worktree = { version = "^0.38.0", path = "../gix-worktree", default-features = false, features = ["attributes"] }
gix-traverse = { version = "^0.43.0", path = "../gix-traverse" }

[dev-dependencies]
gix-ref = { version = "^0.49.0", path = "../gix-ref" }
gix-filter = { version = "^0.15.0", path = "../gix-filter" }
gix-filter = { version = "^0.16.0", path = "../gix-filter" }
gix-fs = { version = "^0.12.0", path = "../gix-fs" }
gix-index = { version = "^0.37.0", path = "../gix-index" }
gix-odb = { version = "^0.65.0", path = "../gix-odb" }
gix-odb = { version = "^0.66.0", path = "../gix-odb" }
gix-testtools = { path = "../tests/tools" }
4 changes: 4 additions & 0 deletions gix/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ blob-diff = ["gix-diff/blob", "attributes"]
## Add functions to specifically merge files, using the standard three-way merge that git offers.
merge = ["tree-editor", "blob-diff", "dep:gix-merge", "attributes"]

## Add blame command similar to `git blame`.
blame = ["dep:gix-blame"]

## Make it possible to turn a tree into a stream of bytes, which can be decoded to entries and turned into various other formats.
worktree-stream = ["gix-worktree-stream", "attributes"]

Expand Down Expand Up @@ -371,6 +374,7 @@ gix-command = { version = "^0.4.0", path = "../gix-command", optional = true }

gix-worktree-stream = { version = "^0.18.0", path = "../gix-worktree-stream", optional = true }
gix-archive = { version = "^0.18.0", path = "../gix-archive", default-features = false, optional = true }
gix-blame = { version= "^0.0.0", path ="../gix-blame", optional = true }

# For communication with remotes
gix-protocol = { version = "^0.47.0", path = "../gix-protocol" }
Expand Down
2 changes: 2 additions & 0 deletions gix/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@
pub use gix_actor as actor;
#[cfg(feature = "attributes")]
pub use gix_attributes as attrs;
#[cfg(feature = "blame")]
pub use gix_blame as blame;
#[cfg(feature = "command")]
pub use gix_command as command;
pub use gix_commitgraph as commitgraph;
Expand Down

0 comments on commit 25efbfb

Please sign in to comment.