(repo: &Repository)
| 11 | use std::{path::Path, process::Command}; |
| 12 | |
| 13 | fn record(repo: &Repository) -> Hash { |
| 14 | *repo |
| 15 | .record( |
| 16 | repo.require_working_copy_id().unwrap(), |
| 17 | ChangeHeader::new("comparison passes fixture"), |
| 18 | RecordOptions::new() |
| 19 | .with_all(true) |
| 20 | .save_to_store(true) |
| 21 | .apply_after_record(true) |
| 22 | .enrich_kg(false), |
| 23 | ) |
| 24 | .unwrap() |
| 25 | .hash() |
| 26 | } |
| 27 | fn add(repo: &Repository, path: &str, text: &str) { |
| 28 | let full = repo.root().join(path); |
| 29 | std::fs::create_dir_all(full.parent().unwrap()).unwrap(); |
no test coverage detected