(entries: &[(&str, &[u8])])
| 3455 | } |
| 3456 | |
| 3457 | fn files(entries: &[(&str, &[u8])]) -> BTreeMap<String, Vec<u8>> { |
| 3458 | entries |
| 3459 | .iter() |
| 3460 | .map(|(path, content)| ((*path).to_string(), content.to_vec())) |
| 3461 | .collect() |
| 3462 | } |
| 3463 | |
| 3464 | fn init_git_with_commit(root: &Path, branch: &str) { |
| 3465 | let repository = GitRepository::init(root).unwrap(); |