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

Function tree_entry_exists

atomic-cli/src/commands/git/parallel.rs:9553–9555  ·  view source on GitHub ↗

Whether a path exists in the tree (any entry kind).

(git_repo: &GitRepository, tree: &Tree, path: &str)

Source from the content-addressed store, hash-verified

9551
9552/// Whether a path exists in the tree (any entry kind).
9553fn tree_entry_exists(git_repo: &GitRepository, tree: &Tree, path: &str) -> bool {
9554 git_tree_entry(git_repo, tree, path).is_ok()
9555}
9556
9557/// Whether `path` lies under a path this same commit vacates: a regular
9558/// file or symlink replaced by a directory of the same name.

Callers 1

parse_commit_with_scopeFunction · 0.85

Calls 1

git_tree_entryFunction · 0.85

Tested by

no test coverage detected