Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/atomicdotdev/atomic
/ short
Function
short
atomic-cli/src/commands/git/hooks.rs:1423–1425 ·
view source on GitHub ↗
(sha: &str)
Source
from the content-addressed store, hash-verified
1421
}
1422
1423
fn short(sha: &str) -> &str {
1424
&sha[..8.min(sha.len())]
1425
}
1426
1427
/// Lowercase hex for a tagged Git object ID (display only).
1428
fn oid_hex(bytes: &[u8]) -> String {
Callers
nothing calls this directly
Calls
1
len
Method · 0.45
Tested by
no test coverage detected