| 270 | } |
| 271 | |
| 272 | fn gate_config( |
| 273 | repo: &Repository, |
| 274 | ) -> atomic_repository::repository::provenance_gate::PublicationGateConfig { |
| 275 | atomic_repository::repository::provenance_gate::PublicationGateConfig::from_repo(repo) |
| 276 | .unwrap_or( |
| 277 | atomic_repository::repository::provenance_gate::PublicationGateConfig { |
| 278 | trust: Default::default(), |
| 279 | repository_identity: None, |
| 280 | }, |
| 281 | ) |
| 282 | } |
| 283 | |
| 284 | /// Walk first-parent history from `tip` to the nearest projection commit and |
| 285 | /// return `(view, Merkle)` from its trailers. |