(work_dir: &Path, home_dir: &Path, args: &[&str])
| 34 | const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic"); |
| 35 | |
| 36 | fn atomic(work_dir: &Path, home_dir: &Path, args: &[&str]) -> Output { |
| 37 | Command::new(ATOMIC_BIN) |
| 38 | .args(args) |
| 39 | .current_dir(work_dir) |
| 40 | .env("HOME", home_dir) |
| 41 | .output() |
| 42 | .expect("run atomic") |
| 43 | } |
| 44 | |
| 45 | /// Serialize a change and return `(bytes, hash)` — the object a server stores |
| 46 | /// under `changes/{blake3}`. |
no test coverage detected