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

Method has_changes

atomic-core/src/diff/semantic/config.rs:100–107  ·  view source on GitHub ↗

Check if there are any changes.

(&self)

Source from the content-addressed store, hash-verified

98impl SemanticDiffStats {
99 /// Check if there are any changes.
100 pub fn has_changes(&self) -> bool {
101 self.lines_added > 0
102 || self.lines_deleted > 0
103 || self.lines_modified > 0
104 || self.tokens_inserted > 0
105 || self.tokens_deleted > 0
106 || self.tokens_replaced > 0
107 }
108
109 /// Get the total number of line changes.
110 pub fn total_line_changes(&self) -> usize {

Callers

nothing calls this directly

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected