mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 22:10:31 +08:00
The implementation of the *deprecated* command is removed, it now directly invokes `git diff`.
15 lines
351 B
Rust
15 lines
351 B
Rust
use std::{ffi::OsString, process};
|
|
|
|
pub fn run(args: Vec<OsString>) -> anyhow::Result<()> {
|
|
crate::warning::deprecated("rad diff", "git diff");
|
|
|
|
let mut child = process::Command::new("git")
|
|
.arg("diff")
|
|
.args(args)
|
|
.spawn()?;
|
|
|
|
let exit_status = child.wait()?;
|
|
|
|
process::exit(exit_status.code().unwrap_or(1));
|
|
}
|