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

Function remove_from_tree

atomic-repository/src/tracking/tree_ops.rs:814–816  ·  view source on GitHub ↗

Remove a single file from tracking. This is [`untrack_staged_path`]: it untracks a staged (never recorded) path and refuses a recorded one, because a recorded path's binding is owned by its change and must be untracked by recording a delete. # Errors See [`untrack_staged_path`].

(txn: &mut T, path: &str)

Source from the content-addressed store, hash-verified

812///
813/// See [`untrack_staged_path`].
814pub fn remove_from_tree<T: MutTxnT>(txn: &mut T, path: &str) -> TrackingResult<Option<Inode>> {
815 untrack_staged_path(txn, path)
816}
817
818/// Remove a directory from tracking.
819///

Callers 1

Calls 1

untrack_staged_pathFunction · 0.85

Tested by 1