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

Function shim_publication_required

atomic-cli/src/commands/git/shadow.rs:256–260  ·  view source on GitHub ↗

Whether native publication must run the Git shim gate.

(repo_root: &Path)

Source from the content-addressed store, hash-verified

254
255/// Whether native publication must run the Git shim gate.
256pub(crate) fn shim_publication_required(repo_root: &Path) -> bool {
257 GitRepository::discover(repo_root)
258 .map(|repository| shadow_sync_active(&repository))
259 .unwrap_or(false)
260}
261
262/// Native Atomic publication is unchanged without an active Git shadow. Once
263/// the shadow marker exists, however, publication is gated fail-closed.

Callers 2

run_asyncMethod · 0.85
run_two_tierMethod · 0.85

Calls 1

shadow_sync_activeFunction · 0.85

Tested by

no test coverage detected