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

Method get_hash_length

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

Get the hash display length.

(&self)

Source from the content-addressed store, hash-verified

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

Callers 2

format_defaultMethod · 0.45
format_shortMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected