Skip to content

Commit d602d7e

Browse files
authored
Merge pull request #2307 from cruessler/add-feature-flag-to-binary
Add feature flag `blame-experimental` to `gix`
2 parents a000a73 + d532bbf commit d602d7e

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ http-client-reqwest = ["gix/blocking-http-transport-reqwest-rust-tls"]
148148
## Use async client networking.
149149
gitoxide-core-async-client = ["gitoxide-core/async-client", "futures-lite"]
150150

151+
#! ### Experimental Features
152+
#!
153+
## An experimental use of the v0.2 branch of `imara-diff` in `gix-diff` and `gix-blame`, to allow trying the new diff algorithm.
154+
blame-experimental = ["gitoxide-core/blame-experimental"]
155+
151156
[dependencies]
152157
anyhow = "1.0.98"
153158

gitoxide-core/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ 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+
#! ### Experimental
50+
## An experimental use of the v0.2 branch of `imara-diff` in `gix-diff` and `gix-blame`, to allow trying the new diff algorithm.
51+
blame-experimental = ["gix/blame-experimental"]
4952

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

gix/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,10 @@ progress-tree = ["prodash/progress-tree"]
305305
## Print debugging information about usage of object database caches, useful for tuning cache sizes.
306306
cache-efficiency-debug = ["gix-features/cache-efficiency-debug"]
307307

308+
#! #### Experimental Features
309+
## Use the v0.2 branch of `imara-diff` in `gix-diff` and `gix-blame`, to allow trying the new diff algorithm.
310+
blame-experimental = ["blame", "gix-blame/blob-experimental"]
311+
308312

309313
[dependencies]
310314
gix-utils = { version = "^0.3.1", path = "../gix-utils" }

0 commit comments

Comments
 (0)