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

Method display_line

atomic-core/src/record/workflow/graph_op/pending.rs:179–185  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

177 /// or new line number for insertions.
178 #[must_use]
179 pub fn display_line(&self) -> u64 {
180 // Convert to 1-indexed for display
181 match self.kind {
182 PendingChangeKind::Insert => (self.new_start + 1) as u64,
183 PendingChangeKind::Delete | PendingChangeKind::Replace => (self.old_start + 1) as u64,
184 }
185 }
186
187 /// Check if this change can be combined with another.
188 ///

Callers 1

finishMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected