cli: Update to `radicle-surf` 0.16
This commit is contained in:
parent
b896a7fbeb
commit
154566f8ef
|
|
@ -2031,9 +2031,9 @@ checksum = "db20136bbc9ae63f3fec8e5a6c369f4902fac2244501b5dfc6d668e43475aaa4"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "radicle-surf"
|
name = "radicle-surf"
|
||||||
version = "0.15.0"
|
version = "0.16.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "1881748cd481ba4680c0ed50fd34abe59d282059be10c277400607e68aa3c827"
|
checksum = "bfc319f555a7cbf938ba4eecb06bd6edcdccce339b20a6b8d8a3af3e92e9f7b7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"base64 0.13.1",
|
"base64 0.13.1",
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ nonempty = { version = "0.8" }
|
||||||
# N.b. this is required to use macros, even though it's re-exported
|
# N.b. this is required to use macros, even though it's re-exported
|
||||||
# through radicle
|
# through radicle
|
||||||
radicle-git-ext = { version = "0.6.0", features = ["serde"] }
|
radicle-git-ext = { version = "0.6.0", features = ["serde"] }
|
||||||
radicle-surf = { version = "0.15.0" }
|
radicle-surf = { version = "0.16.0" }
|
||||||
serde = { version = "1.0" }
|
serde = { version = "1.0" }
|
||||||
serde_json = { version = "1" }
|
serde_json = { version = "1" }
|
||||||
serde_yaml = { version = "0.8" }
|
serde_yaml = { version = "0.8" }
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,6 @@ pub fn run(options: Options, _ctx: impl term::Context) -> anyhow::Result<()> {
|
||||||
let mut find_opts = git::raw::DiffFindOptions::new();
|
let mut find_opts = git::raw::DiffFindOptions::new();
|
||||||
find_opts.exact_match_only(true);
|
find_opts.exact_match_only(true);
|
||||||
find_opts.all(true);
|
find_opts.all(true);
|
||||||
find_opts.copies(false); // We don't support finding copies at the moment.
|
|
||||||
|
|
||||||
let mut diff = match oids.as_slice() {
|
let mut diff = match oids.as_slice() {
|
||||||
[] => {
|
[] => {
|
||||||
|
|
|
||||||
|
|
@ -160,10 +160,10 @@ impl ToPretty for DiffContent {
|
||||||
Some((f.old.oid, f.path.clone())),
|
Some((f.old.oid, f.path.clone())),
|
||||||
Some((f.new.oid, f.path.clone())),
|
Some((f.new.oid, f.path.clone())),
|
||||||
),
|
),
|
||||||
FileDiff::Copied(_) => {
|
FileDiff::Copied(f) => (
|
||||||
// This is due to not having `oid`s for copied files yet.
|
Some((f.old.oid, f.old_path.clone())),
|
||||||
unimplemented!("DiffContent::pretty: copied files are not supported in diffs")
|
Some((f.old.oid, f.new_path.clone())),
|
||||||
}
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut header = header.pretty(hi, &(), repo);
|
let mut header = header.pretty(hi, &(), repo);
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ hyper = { version = "0.14.17", default-features = false }
|
||||||
lexopt = { version = "0.2.1" }
|
lexopt = { version = "0.2.1" }
|
||||||
lru = { version = "0.11.0" }
|
lru = { version = "0.11.0" }
|
||||||
nonempty = { version = "0.8.1", features = ["serialize"] }
|
nonempty = { version = "0.8.1", features = ["serialize"] }
|
||||||
radicle-surf = { version = "0.15.0", default-features = false, features = ["serde"] }
|
radicle-surf = { version = "0.16.0", default-features = false, features = ["serde"] }
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
serde_json = { version = "1", features = ["preserve_order"] }
|
serde_json = { version = "1", features = ["preserve_order"] }
|
||||||
thiserror = { version = "1" }
|
thiserror = { version = "1" }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue