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

Method delete_at

atomic-core/src/change/ops.rs:688–699  ·  view source on GitHub ↗

Creates a line delete operation with line number.

(branch_id: BranchId, content: Vec<LeafOp>, old_line_num: usize)

Source from the content-addressed store, hash-verified

686
687 /// Creates a line delete operation with line number.
688 pub fn delete_at(branch_id: BranchId, content: Vec<LeafOp>, old_line_num: usize) -> Self {
689 Self {
690 branch_id,
691 operation: BranchOp::Delete {
692 branch: branch_id,
693 content,
694 },
695 old_line_num: Some(old_line_num),
696 new_line_num: None,
697 content_range: None,
698 }
699 }
700
701 /// Creates a line delete operation without content.
702 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected