Skip to content

Commit f2c266d

Browse files
Copy singular diff into short path for easier copy/paste
1 parent 31f3cd8 commit f2c266d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

collector/src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,10 @@ fn main_result() -> anyhow::Result<i32> {
10841084
eprintln!("{}", diff.to_string_lossy());
10851085
}
10861086
} else if diffs.len() == 1 {
1087-
eprintln!("Diff: {}", diffs[0].to_string_lossy());
1087+
let short = out_dir.join("cgdiffann-latest");
1088+
std::fs::copy(&diffs[0], &short).expect("copy to short path");
1089+
eprintln!("Original diff at: {}", diffs[0].to_string_lossy());
1090+
eprintln!("Short path: {}", short.to_string_lossy());
10881091
}
10891092
}
10901093

0 commit comments

Comments
 (0)