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

Method total_lines

atomic-core/src/change/credit.rs:673–675  ·  view source on GitHub ↗

Get the total line count.

(&self)

Source from the content-addressed store, hash-verified

671
672 /// Get the total line count.
673 pub fn total_lines(&self) -> u64 {
674 self.ranges.iter().map(|r| r.line_count()).sum()
675 }
676
677 /// Check if the file has any AI-involved content.
678 pub fn has_ai_content(&self) -> bool {

Callers

nothing calls this directly

Calls 2

iterMethod · 0.45
line_countMethod · 0.45

Tested by

no test coverage detected