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

Method max_path_length

atomic-repository/src/diff_engine.rs:259–261  ·  view source on GitHub ↗

Get the maximum path length for formatting.

(&self)

Source from the content-addressed store, hash-verified

257
258 /// Get the maximum path length for formatting.
259 pub fn max_path_length(&self) -> usize {
260 self.files.iter().map(|f| f.path.len()).max().unwrap_or(0)
261 }
262
263 /// Get the maximum change count for formatting.
264 pub fn max_change_count(&self) -> usize {

Callers

nothing calls this directly

Calls 2

iterMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected