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

Method record_foreign_deleted_file

atomic-repository/src/repository/record.rs:1629–1634  ·  view source on GitHub ↗

Record a foreign Git deletion bound to the ACTUAL deleted trunk (review CB-9C R2, re-review EYL): the canonical delete record's semantic ops use a placeholder trunk that resolves to the deleting change, so `update_trunk_state` tombstoned nobody and the moved-to or previously-created trunk row stayed Alive after the graph deletion. This method resolves the OLD path's real CRDT trunk and alive branc

(
        &self,
        path: &str,
    )

Source from the content-addressed store, hash-verified

1627 /// Returns an error message when the path has no inode binding, its
1628 /// semantic state is inconsistent, or the canonical FileDel record is empty.
1629 pub fn record_foreign_deleted_file(
1630 &self,
1631 path: &str,
1632 ) -> Result<atomic_core::record::workflow::RecordedFile, String> {
1633 self.record_foreign_deleted_file_on_view_excluding(path, &self.current_view, &[])
1634 }
1635
1636 /// Delete the identity visible in the requested assembly closure.
1637 pub fn record_foreign_deleted_file_on_view_excluding(