Skip to main content

radicle_cli/commands/
diff.rs

1use std::{ffi::OsString, process};
2
3pub fn run(args: Vec<OsString>) -> anyhow::Result<()> {
4    crate::warning::deprecated("rad diff", "git diff");
5
6    let mut child = process::Command::new("git")
7        .arg("diff")
8        .args(args)
9        .spawn()?;
10
11    let exit_status = child.wait()?;
12
13    process::exit(exit_status.code().unwrap_or(1));
14}