(repo: &Repository, repo_path: &Path, name: &str, content: &str)
| 21 | } |
| 22 | |
| 23 | fn add_file(repo: &Repository, repo_path: &Path, name: &str, content: &str) { |
| 24 | fs::write(repo_path.join(name), content).expect("write file"); |
| 25 | repo.add(working_copy(repo), name, Default::default()) |
| 26 | .expect("add file"); |
| 27 | } |
| 28 | |
| 29 | fn write_only(repo_path: &Path, name: &str, content: &str) { |
| 30 | fs::write(repo_path.join(name), content).expect("write file"); |
no test coverage detected