Skip to content

Commit 4ba50fe

Browse files
committed
[ref-ls] And it even doesn't work if it is the very same transport
Again, do boxes need their very own impl?
1 parent 5fc4330 commit 4ba50fe

File tree

7 files changed

+12
-9
lines changed

7 files changed

+12
-9
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ default = ["max"]
2828
max = ["fast", "pretty-cli", "prodash/render-tui-crossterm", "prodash-render-line-crossterm", "http-client-curl"]
2929
max-termion = ["fast", "pretty-cli", "prodash/render-tui-termion", "prodash-render-line-termion", "http-client-curl"]
3030

31-
lean = ["fast", "lean-cli", "prodash-render-line-crossterm", "git-features/interrupt-handler", "prodash/progress-tree"]
32-
lean-termion = ["fast", "lean-cli", "prodash-render-line-termion", "git-features/interrupt-handler", "prodash/progress-tree"]
31+
lean = ["fast", "lean-cli", "prodash-render-line-crossterm", "git-features/interrupt-handler", "prodash/progress-tree", "http-client-curl"]
32+
lean-termion = ["fast", "lean-cli", "prodash-render-line-termion", "git-features/interrupt-handler", "prodash/progress-tree", "http-client-curl"]
3333

3434
light = ["fast", "lean-cli", "git-features/interrupt-handler"]
3535
small = ["lean-cli"]

git-protocol/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ include = ["src/**/*"]
1212
doctest = false
1313

1414
[features]
15-
serde1 = ["serde", "bstr/serde1", "git-object/serde1"]
15+
serde1 = ["serde", "bstr/serde1", "git-transport/serde1", "git-object/serde1"]
1616

1717
[dependencies]
1818
git-features = { version = "0.4.0", path = "../git-features" }

git-protocol/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#![deny(unsafe_code)]
22

3+
pub use git_transport;
4+
35
mod remote_progress;
46
pub use remote_progress::RemoteProgress;
57

gitoxide-core/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ doctest = false
1212
test = false
1313

1414
[features]
15-
serde1 = ["git-object/serde1", "git-odb/serde1", "git-transport/serde1", "git-protocol/serde1", "serde_json"]
15+
serde1 = ["git-object/serde1", "git-odb/serde1", "git-protocol/serde1", "serde_json"]
1616

1717
[package.metadata.docs.rs]
1818
all-features = true
@@ -22,7 +22,6 @@ git-repository = { version = "0.3.0", path = "../git-repository" }
2222
git-object = { version = "^0.3.0", path = "../git-object" }
2323
git-odb = { version = "0.3.0", path = "../git-odb" }
2424
git-protocol = { version = "0.1.0", path = "../git-protocol" }
25-
git-transport = { version = "0.1.0", path = "../git-transport" }
2625
git-features = { version = "^0.4.0", path = "../git-features" }
2726
anyhow = "1.0.31"
2827
quick-error = "2.0.0"

gitoxide-core/src/protocol.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use git_protocol::git_transport;
12
use std::str::FromStr;
23

34
#[derive(PartialEq, Debug)]

gitoxide-core/src/remote.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
pub mod refs {
22
use crate::{OutputFormat, Protocol};
33
use git_features::progress::Progress;
4-
use git_protocol::fetch::{Action, Ref};
5-
use git_transport::client::Capabilities;
4+
use git_protocol::{
5+
fetch::{Action, Ref},
6+
git_transport,
7+
};
68
use std::io;
79

810
#[derive(Default)]
@@ -14,7 +16,7 @@ pub mod refs {
1416
fn prepare_fetch(
1517
&mut self,
1618
_version: git_transport::Protocol,
17-
_server: &Capabilities,
19+
_server: &git_transport::client::Capabilities,
1820
_features: &mut Vec<(&str, Option<&str>)>,
1921
refs: &[Ref],
2022
) -> Action {

0 commit comments

Comments
 (0)