Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/atomicdotdev/atomic
/ is_shared
Function
is_shared
atomic-core/src/pristine/git_closure.rs:50–52 ·
view source on GitHub ↗
(bytes: &[u8])
Source
from the content-addressed store, hash-verified
48
}
49
50
pub(crate) fn is_shared(bytes: &[u8]) -> bool {
51
bytes.len() == 44 && bytes.starts_with(MAGIC)
52
}
53
54
fn encode_tree(
55
hashes: &[Hash],
Callers
2
shared_and_legacy_encodings_preserve_arbitrary_vectors
Function · 0.85
put_git_commit_closure
Method · 0.85
Calls
1
len
Method · 0.45
Tested by
no test coverage detected