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 7d1db6a0131e560589a4b25f5d472fdf23998a67
parent 8558cc2233b20326dbc5e32c966c0a6f22c8b53a
3 files changed +9 -0
modified CHANGELOG.md
@@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Deprecations

- The option `rad self --nid` was deprecated in favor of `rad status --only nid`
+
- `rad diff` was deprecated in favor of using `git diff`
+

## New Features

- `rad clone` now supports the flag `--bare` which works analoguously to
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