Skip to content

Commit 61c9768

Browse files
committed
remove unnecessary gitoxide-core/gitoxide 'blame' feature.
This is also in preparation to adding a simple 'blame-file' function to `gix`.
1 parent acfb3c7 commit 61c9768

File tree

5 files changed

+1
-10
lines changed

5 files changed

+1
-10
lines changed

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,6 @@ http-client-curl-rustls = ["gix/blocking-http-transport-curl-rustls"]
161161
## Support synchronous 'http' and 'https' transports (e.g. for clone, fetch and push) using **reqwest**.
162162
http-client-reqwest = ["gix/blocking-http-transport-reqwest-rust-tls"]
163163

164-
## Add blame command similar to `git blame`.
165-
blame = ["gix/blame", "gitoxide-core/blame"]
166-
167164
#! #### Async
168165
#!
169166
## Use async client networking.

gitoxide-core/Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +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-
## Add blame command similar to `git blame`.
50-
blame = []
51-
5249
[dependencies]
5350
# deselect everything else (like "performance") as this should be controllable by the parent application.
54-
gix = { version = "^0.66.0", path = "../gix", default-features = false, features = ["blob-merge", "blob-diff", "revision", "mailmap", "excludes", "attributes", "worktree-mutation", "credentials", "interrupt", "status", "dirwalk"] }
51+
gix = { version = "^0.66.0", path = "../gix", default-features = false, features = ["blob-merge", "blob-diff", "revision", "mailmap", "excludes", "attributes", "worktree-mutation", "credentials", "interrupt", "status", "dirwalk", "blame"] }
5552
gix-pack-for-configuration-only = { package = "gix-pack", version = "^0.53.0", path = "../gix-pack", default-features = false, features = ["pack-cache-lru-dynamic", "pack-cache-lru-static", "generate", "streaming-input"] }
5653
gix-transport-configuration-only = { package = "gix-transport", version = "^0.42.3", path = "../gix-transport", default-features = false }
5754
gix-archive-for-configuration-only = { package = "gix-archive", version = "^0.15.0", path = "../gix-archive", optional = true, features = ["tar", "tar_gz"] }

gitoxide-core/src/repository/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ pub enum PathsOrPatterns {
1919

2020
#[cfg(feature = "archive")]
2121
pub mod archive;
22-
#[cfg(feature = "blame")]
2322
pub mod blame;
2423
pub mod commit;
2524
pub mod config;

src/plumbing/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1435,7 +1435,6 @@ pub fn main() -> Result<()> {
14351435
},
14361436
),
14371437
},
1438-
#[cfg(feature = "blame")]
14391438
Subcommands::Blame { file } => prepare_and_run(
14401439
"blame",
14411440
trace,

src/plumbing/options/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ pub enum Subcommands {
145145
#[clap(subcommand)]
146146
Free(free::Subcommands),
147147
/// Blame lines in a file
148-
#[cfg(feature = "blame")]
149148
Blame {
150149
file: std::ffi::OsString,
151150
},

0 commit comments

Comments
 (0)