mdbook-compare: fix duplicate "diff" print

The "diff" arg is already in the args list.
This commit is contained in:
Eric Huss 2025-10-29 19:45:22 -07:00 committed by GitHub
parent 8a27d1b7ac
commit a17c1d1b95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -104,7 +104,7 @@ fn tidy(path: &Path) {
fn diff(a: &Path, b: &Path) { fn diff(a: &Path, b: &Path) {
let args = "diff --no-index"; let args = "diff --no-index";
println!("running `git diff {args} {a:?} {b:?}`"); println!("running `git {args} {a:?} {b:?}`");
Command::new("git") Command::new("git")
.args(args.split(' ')) .args(args.split(' '))
.args([a, b]) .args([a, b])