(repo: &Repository, message: &str)
| 6 | use std::{collections::BTreeSet, path::Path, process::Command}; |
| 7 | |
| 8 | fn record(repo: &Repository, message: &str) -> String { |
| 9 | repo.record( |
| 10 | repo.require_working_copy_id().unwrap(), |
| 11 | ChangeHeader::new(message), |
| 12 | RecordOptions::new() |
| 13 | .with_all(true) |
| 14 | .save_to_store(true) |
| 15 | .apply_after_record(true) |
| 16 | .enrich_kg(false), |
| 17 | ) |
| 18 | .unwrap() |
| 19 | .hash() |
| 20 | .to_base32() |
| 21 | } |
| 22 | fn write(repo: &Repository, path: &str, text: &str) { |
| 23 | let full = repo.root().join(path); |
| 24 | std::fs::create_dir_all(full.parent().unwrap()).unwrap(); |
no test coverage detected