(root: &Path, text: &str)
| 1836 | } |
| 1837 | |
| 1838 | fn write_config(root: &Path, text: &str) { |
| 1839 | std::fs::create_dir_all(root.join(".atomic")).unwrap(); |
| 1840 | std::fs::write(root.join(".atomic/config.toml"), text).unwrap(); |
| 1841 | } |
| 1842 | |
| 1843 | let resolve = |git: &git2::Repository| { |
| 1844 | ExclusionPolicy::resolve_for_git(git).expect("resolution must not fail") |