From 9c06c4086af9cf6383e0caac22514c4045569d2a Mon Sep 17 00:00:00 2001 From: Lorenz Leutgeb Date: Tue, 25 Aug 2026 20:36:37 +0200 Subject: [PATCH] cli/patch: Spawn `git` for diffs directly Spawning `rad diff` works, but prints a deprecation notice, because `rad diff` itself is deprecated. `rad patch diff` however is not deprecated and should just take a shortcut. --- CHANGELOG.md | 3 +++ crates/radicle-cli/src/commands/patch/diff.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 58893b908..fc0fcd8af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - The Git remote helper `git-remote-rad` now supports the options `pushcert [if-asked|false]`. This means it will not refuse operation anymore if called via `git push --signed=[if-asked|false]`. +- `rad patch diff` does not print a deprecation notice about `rad diff` + being deprecated anymore. Instead, `rad patch diff` executes `git diff` + directly (which is what `rad diff` does anyway). ## 1.10.1 - 2026-08-12 diff --git a/crates/radicle-cli/src/commands/patch/diff.rs b/crates/radicle-cli/src/commands/patch/diff.rs index 19b278fdd..03a5583c2 100644 --- a/crates/radicle-cli/src/commands/patch/diff.rs +++ b/crates/radicle-cli/src/commands/patch/diff.rs @@ -25,7 +25,7 @@ pub fn run( }; let (from, to) = revision.range(); - process::Command::new("rad") + process::Command::new("git") .current_dir(stored.path()) .args(["diff", from.to_string().as_str(), to.to_string().as_str()]) .stdout(process::Stdio::inherit())