Skip to content

Commit 826effb

Browse files
committed
Add feature flag blame-experimental to gix
1 parent a000a73 commit 826effb

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ lean = ["fast", "tracing", "pretty-cli", "http-client-curl", "gitoxide-core-tool
6363
## Optimized for size, no parallelism thus much slower, progress line rendering.
6464
small = ["pretty-cli", "prodash-render-line", "is-terminal"]
6565

66+
## An experimental use of the v0.2 branch of `imara-diff` in `gix-diff` and `gix-blame`, to allow trying the new diff algorithm.
67+
blame-experimental = ["gitoxide-core/blame-experimental"]
68+
6669
## Like lean, but uses Rusts async implementations for networking.
6770
##
6871
## This build is more of a demonstration showing how async can work with `gitoxide`, which generally is blocking. This also means that the selection of async transports

gitoxide-core/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ async-client = ["gix/async-network-client-async-std", "gix-transport-configurati
4646
## Data structures implement `serde::Serialize` and `serde::Deserialize`.
4747
serde = ["gix/serde", "dep:serde_json", "dep:serde", "bytesize/serde"]
4848

49+
## An experimental use of the v0.2 branch of `imara-diff` in `gix-diff` and `gix-blame`, to allow trying the new diff algorithm.
50+
blame-experimental = ["gix/blame-experimental"]
4951

5052
[dependencies]
5153
# deselect everything else (like "performance") as this should be controllable by the parent application.

gix/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ merge = ["tree-editor", "blob-diff", "dep:gix-merge", "attributes"]
147147
## Add blame command similar to `git blame`.
148148
blame = ["dep:gix-blame", "blob-diff"]
149149

150+
## Use the v0.2 branch of `imara-diff` in `gix-diff` and `gix-blame`, to allow trying the new diff algorithm.
151+
blame-experimental = ["dep:gix-blame", "gix-blame/blob-experimental"]
152+
150153
## Make it possible to turn a tree into a stream of bytes, which can be decoded to entries and turned into various other formats.
151154
worktree-stream = ["gix-worktree-stream", "attributes"]
152155

0 commit comments

Comments
 (0)