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

Method get_hash_length

atomic-cli/src/commands/log/command.rs:242–248  ·  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

240 ///
241 /// The number of characters to display for hashes.
242 pub(crate) fn get_hash_length(&self) -> usize {
243 if self.full_hash {
244 52 // Full Base32 hash length
245 } else {
246 DEFAULT_HASH_LENGTH
247 }
248 }
249
250 /// Format entries for default output.
251 ///

Callers 1

print_entriesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected