MCPcopy Create free account
hub / github.com/AIScientists-Dev/Flowtrace / path_matches

Function path_matches

crates/flowtrace-cli/src/git.rs:231–234  ·  view source on GitHub ↗
(p: Option<&Path>, target: &Path)

Source from the content-addressed store, hash-verified

229}
230
231fn path_matches(p: Option<&Path>, target: &Path) -> bool {
232 let Some(p) = p else { return false };
233 p == target || p.starts_with(target)
234}
235
236fn tree_contains_path(tree: &git2::Tree, target: &Path) -> Result<bool> {
237 let mut found = false;

Callers 1

commits_underFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…