mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-28 21:50:26 +08:00
cli/diff: Deprecation Warning
This command is just a small wrapper around `git diff` not worth maintaining.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user