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

Method get_hash_length

atomic-cli/src/commands/log/command.rs:221–227  ·  view source on GitHub ↗

Get the hash display length based on settings. # Returns The number of characters to display for hashes.

(&self)

Source from the content-addressed store, hash-verified

219 ///
220 /// The number of characters to display for hashes.
221 pub(crate) fn get_hash_length(&self) -> usize {
222 if self.full_hash {
223 52 // Full Base32 hash length
224 } else {
225 DEFAULT_HASH_LENGTH
226 }
227 }
228
229 /// Format entries for default output.
230 ///

Callers 1

print_entriesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected