Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
cli: Update to radicle-surf 0.16
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Sep 27, 2023
1 parent b896a7f commit 154566f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion radicle-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ nonempty = { version = "0.8" }
# N.b. this is required to use macros, even though it's re-exported
# through radicle
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_json = { version = "1" }
serde_yaml = { version = "0.8" }
Expand Down
1 change: 0 additions & 1 deletion radicle-cli/src/commands/diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ pub fn run(options: Options, _ctx: impl term::Context) -> anyhow::Result<()> {
let mut find_opts = git::raw::DiffFindOptions::new();
find_opts.exact_match_only(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() {
[] => {
Expand Down
8 changes: 4 additions & 4 deletions radicle-cli/src/git/pretty_diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ impl ToPretty for DiffContent {
Some((f.old.oid, f.path.clone())),
Some((f.new.oid, f.path.clone())),
),
FileDiff::Copied(_) => {
// This is due to not having `oid`s for copied files yet.
unimplemented!("DiffContent::pretty: copied files are not supported in diffs")
}
FileDiff::Copied(f) => (
Some((f.old.oid, f.old_path.clone())),
Some((f.old.oid, f.new_path.clone())),
),
};

let mut header = header.pretty(hi, &(), repo);
Expand Down
2 changes: 1 addition & 1 deletion radicle-httpd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ hyper = { version = "0.14.17", default-features = false }
lexopt = { version = "0.2.1" }
lru = { version = "0.11.0" }
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_json = { version = "1", features = ["preserve_order"] }
thiserror = { version = "1" }
Expand Down

0 comments on commit 154566f

Please sign in to comment.