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

Function live_names_for_path

atomic-repository/src/repository/materialize.rs:299–307  ·  view source on GitHub ↗
(
    txn: &T,
    store: &C,
    position: Position<NodeId>,
    path: &str,
    filter: &HashSet<NodeId>,
)

Source from the content-addressed store, hash-verified

297pub(crate) type NameConflicts = std::collections::HashMap<String, Vec<(Inode, Position<NodeId>)>>;
298
299pub(crate) fn live_names_for_path<T: GraphTxnT, C: atomic_core::change::ChangeStore>(
300 txn: &T,
301 store: &C,
302 position: Position<NodeId>,
303 path: &str,
304 filter: &HashSet<NodeId>,
305) -> Result<Vec<atomic_core::types::GraphNode<NodeId>>, RepositoryError> {
306 live_names_for_path_with_claims(txn, store, position, path, filter, &[])
307}
308
309pub(super) fn live_names_for_path_with_claims<T: GraphTxnT, C: atomic_core::change::ChangeStore>(
310 txn: &T,

Calls 1

Tested by

no test coverage detected