(path: &[u8], bytes: &[u8])
| 3454 | use atomic_core::types::SetId; |
| 3455 | |
| 3456 | fn plan_entry(path: &[u8], bytes: &[u8]) -> RepositoryEntry { |
| 3457 | RepositoryEntry::new( |
| 3458 | RepoPath::from_bytes(path).unwrap(), |
| 3459 | bytes.to_vec(), |
| 3460 | 0o644, |
| 3461 | InodeKind::Regular, |
| 3462 | None, |
| 3463 | ManifestDisposition::Included, |
| 3464 | ) |
| 3465 | .unwrap() |
| 3466 | } |
| 3467 | |
| 3468 | fn plan_tree(entries: Vec<RepositoryEntry>) -> ProjectTree { |
| 3469 | let policy = ConversionPolicy::new(GitHashAlgorithm::Sha1); |