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

Function git_mode_at

atomic-cli/src/commands/git/parallel.rs:9546–9550  ·  view source on GitHub ↗
(git_repo: &GitRepository, tree: &Tree<'_>, path: &str)

Source from the content-addressed store, hash-verified

9544}
9545
9546fn git_mode_at(git_repo: &GitRepository, tree: &Tree<'_>, path: &str) -> Option<u32> {
9547 git_tree_entry(git_repo, tree, path)
9548 .ok()
9549 .map(|entry| entry.filemode() as u32)
9550}
9551
9552/// Whether a path exists in the tree (any entry kind).
9553fn tree_entry_exists(git_repo: &GitRepository, tree: &Tree, path: &str) -> bool {

Callers 3

parse_commit_with_scopeFunction · 0.85

Calls 2

git_tree_entryFunction · 0.85
okMethod · 0.45

Tested by

no test coverage detected