Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli/diff: Deprecation Warning
Lorenz Leutgeb committed 7 months ago
commit de2e58ce3d46ccb5266d018f0cb225c927e85027
parent 14b8ed9182cfbd74ddfc16e912ddac85f9131ae1
2 files changed +7 -0
modified crates/radicle-cli/examples/rad-diff.md
@@ -1,3 +1,8 @@
+
``` (stderr)
+
$ rad diff
+
! Deprecated: The command/option `rad diff` is deprecated and will be removed. Please use `git diff` instead.
+
```
+

Exploring `rad diff`.

``` ./main.c
modified crates/radicle-cli/src/commands/diff.rs
@@ -82,6 +82,8 @@ impl Args for Options {
}

pub fn run(options: Options, _ctx: impl term::Context) -> anyhow::Result<()> {
+
    crate::warning::deprecated("rad diff", "git diff");
+

    let repo = rad::repo()?;
    let oids = options
        .commits