(dir: &Path, args: &[&str])
| 12 | const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic"); |
| 13 | |
| 14 | fn atomic(dir: &Path, args: &[&str]) -> Output { |
| 15 | Command::new(ATOMIC_BIN) |
| 16 | .args(args) |
| 17 | .current_dir(dir) |
| 18 | .output() |
| 19 | .expect("run atomic") |
| 20 | } |
| 21 | |
| 22 | fn write_memory(root: &Path, body: &str) { |
| 23 | let repo = Repository::open(root).expect("open repository"); |