| 3466 | } |
| 3467 | |
| 3468 | fn plan_tree(entries: Vec<RepositoryEntry>) -> ProjectTree { |
| 3469 | let policy = ConversionPolicy::new(GitHashAlgorithm::Sha1); |
| 3470 | let manifest = |
| 3471 | RepositoryManifest::new(SetId::ZERO, policy.root().content_key.clone(), entries) |
| 3472 | .unwrap(); |
| 3473 | ProjectTree { |
| 3474 | manifest, |
| 3475 | git: GitTree { |
| 3476 | algorithm: GitHashAlgorithm::Sha1, |
| 3477 | root: atomic_core::operation::GitObjectId::new(GitHashAlgorithm::Sha1, vec![0; 20]) |
| 3478 | .unwrap(), |
| 3479 | objects: Default::default(), |
| 3480 | }, |
| 3481 | } |
| 3482 | } |
| 3483 | |
| 3484 | fn planned<'a>(plan: &'a CarriedReassemblyPlan, path: &str) -> Option<&'a CarriedEntry> { |
| 3485 | plan.entries |