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

Function short_digest

atomic-repository/src/wip.rs:322–325  ·  view source on GitHub ↗
(value: &str)

Source from the content-addressed store, hash-verified

320}
321
322fn short_digest(value: &str) -> String {
323 let digest = blake3::hash(value.as_bytes()).to_hex().to_string();
324 digest[..20].to_string()
325}
326
327fn require_worktree(root: &Path) -> Result<(), WipCaptureError> {
328 let inside = git_text(

Callers

nothing calls this directly

Calls 3

hashFunction · 0.50
to_hexMethod · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected