MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / gate_config

Function gate_config

atomic-cli/src/commands/git/verify_receive.rs:272–282  ·  view source on GitHub ↗
(
    repo: &Repository,
)

Source from the content-addressed store, hash-verified

270}
271
272fn 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.

Callers 1

verify_ref_updateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected