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

Method get_hash_length

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

Get the hash display length.

(&self)

Source from the content-addressed store, hash-verified

151
152 /// Get the hash display length.
153 pub(crate) fn get_hash_length(&self) -> usize {
154 if self.full_hash {
155 52
156 } else {
157 DEFAULT_HASH_LENGTH
158 }
159 }
160
161 /// Resolve the change identifier to a hash.
162 ///

Callers 2

format_defaultMethod · 0.45
format_shortMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected