Create the view an adoption targets: an ephemeral Draft with optional parent, or the missing binding-hinted view as Shared. CB-7B: an ephemeral adoption view never inherits a Shared parent's change closure. Its projection must equal exactly the adopted binding's tree (§7.3 verification); inheriting an unrelated Shared closure would fabricate baseline content the binding never contained. The §7.5
(&mut self, target: &HeadTarget)
| 1378 | /// closure would fabricate baseline content the binding never contained. |
| 1379 | /// The §7.5 parent hint stays a mapping/retention concern (CB-10A/CB-13). |
| 1380 | fn create_adoption_view(&mut self, target: &HeadTarget) -> Result<(), RepositoryError> { |
| 1381 | if !target.ephemeral { |
| 1382 | return self.create_view_with_identity(&target.view, ViewScope::Shared, None); |
| 1383 | } |
| 1384 | self.create_view_with_identity(&target.view, ViewScope::Draft, None) |
| 1385 | } |
| 1386 | |
| 1387 | /// Deterministic ephemeral view name `git/<short-oid>` (RFC §7.5) with |
| 1388 | /// short-OID collision handling: the prefix grows one character at a time |
no test coverage detected