cli/diff: Deprecation Warning
This command is just a small wrapper around `git diff` not worth maintaining.
This commit is contained in:
parent
8558cc2233
commit
7d1db6a013
|
|
@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
## Deprecations
|
## Deprecations
|
||||||
|
|
||||||
- The option `rad self --nid` was deprecated in favor of `rad status --only nid`
|
- 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
|
## New Features
|
||||||
|
|
||||||
- `rad clone` now supports the flag `--bare` which works analoguously to
|
- `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`.
|
Exploring `rad diff`.
|
||||||
|
|
||||||
``` ./main.c
|
``` ./main.c
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,8 @@ impl Args for Options {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn run(options: Options, _ctx: impl term::Context) -> anyhow::Result<()> {
|
pub fn run(options: Options, _ctx: impl term::Context) -> anyhow::Result<()> {
|
||||||
|
crate::warning::deprecated("rad diff", "git diff");
|
||||||
|
|
||||||
let repo = rad::repo()?;
|
let repo = rad::repo()?;
|
||||||
let oids = options
|
let oids = options
|
||||||
.commits
|
.commits
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue