MCPcopy Index your code
hub / github.com/emwalker/digraph / deque_from_path

Function deque_from_path

backend/src/git/core/mod.rs:15–25  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

13};
14
15pub fn deque_from_path(path: &Path) -> VecDeque<String> {
16 let mut deque = VecDeque::new();
17
18 for component in path.components() {
19 if let Some(part) = component.as_os_str().to_str() {
20 deque.push_back(part.to_owned());
21 }
22 }
23
24 deque
25}
26
27pub struct Repo {
28 path: PathBuf,

Callers 3

topic_oidMethod · 0.85
find_blob_by_filenameMethod · 0.85
addMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected