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

Method get_hash_length

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

Get the hash display length.

(&self)

Source from the content-addressed store, hash-verified

146
147 /// Get the hash display length.
148 pub(crate) fn get_hash_length(&self) -> usize {
149 if self.full_hash {
150 52
151 } else {
152 DEFAULT_HASH_LENGTH
153 }
154 }
155
156 /// Resolve the change identifier to a hash.
157 ///

Callers 2

format_shortMethod · 0.45
renderFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected