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

Function is_owned_dispatcher

atomic-cli/src/commands/git/hooks.rs:412–415  ·  view source on GitHub ↗
(content: &[u8])

Source from the content-addressed store, hash-verified

410}
411
412pub(super) fn is_owned_dispatcher(content: &[u8]) -> bool {
413 let expected = format!("#!/bin/sh\n{DISPATCHER_MARKER}\n");
414 content.starts_with(expected.as_bytes())
415}
416
417pub(super) fn is_legacy_atomic_only(content: &[u8]) -> bool {
418 let Ok(content) = std::str::from_utf8(content) else {

Callers 3

remove_owned_hookFunction · 0.85
hook_statusFunction · 0.85

Calls 1

as_bytesMethod · 0.45

Tested by

no test coverage detected