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

Function is_unprotected

atomic-cli/src/commands/git/verify_receive.rs:174–178  ·  view source on GitHub ↗
(ref_name: &str, unprotected: &[String])

Source from the content-addressed store, hash-verified

172}
173
174fn is_unprotected(ref_name: &str, unprotected: &[String]) -> bool {
175 unprotected
176 .iter()
177 .any(|prefix| ref_name.starts_with(prefix.as_str()))
178}
179
180/// Verify one ref update: resolve the projection state at the new tip,
181/// compute the view's change delta, and run the trusted provenance gate.

Callers 1

verify_receive_updatesFunction · 0.85

Calls 2

iterMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected