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

Method get_hash_length

atomic-cli/src/commands/change/command.rs:128–134  ·  view source on GitHub ↗

Get the hash display length.

(&self)

Source from the content-addressed store, hash-verified

126
127 /// Get the hash display length.
128 pub(crate) fn get_hash_length(&self) -> usize {
129 if self.full_hash {
130 52
131 } else {
132 DEFAULT_HASH_LENGTH
133 }
134 }
135
136 /// Resolve the change identifier to a hash.
137 ///

Callers 2

format_defaultMethod · 0.45
format_shortMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected