MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / short_hash

Function short_hash

crates/openshell-cli/src/run.rs:6275–6277  ·  view source on GitHub ↗
(hash: &str)

Source from the content-addressed store, hash-verified

6273}
6274
6275fn short_hash(hash: &str) -> &str {
6276 if hash.len() >= 12 { &hash[..12] } else { hash }
6277}
6278
6279fn print_policy_merge_warnings(warnings: &[openshell_policy::PolicyMergeWarning]) {
6280 for warning in warnings {

Callers

nothing calls this directly

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected