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

Function canonical_root

atomic-cli/src/commands/git/hooks.rs:1824–1831  ·  view source on GitHub ↗
(root: &Path)

Source from the content-addressed store, hash-verified

1822}
1823
1824pub(super) fn canonical_root(root: &Path) -> CliResult<PathBuf> {
1825 fs::canonicalize(root).map_err(|error| {
1826 git_error(format!(
1827 "cannot resolve repository root '{}': {error}",
1828 root.display()
1829 ))
1830 })
1831}
1832
1833pub(super) fn git_error(message: impl Into<String>) -> CliError {
1834 CliError::GitError {

Callers 12

enable_shimFunction · 0.85
record_pre_commitFunction · 0.85
record_post_rewriteFunction · 0.85
run_shim_reviewFunction · 0.85
persist_checkout_eventFunction · 0.85
run_deferred_observationFunction · 0.85
uninstall_shimFunction · 0.85
show_statusFunction · 0.85
inspect_dispatchersFunction · 0.85

Calls 2

git_errorFunction · 0.70
canonicalizeFunction · 0.50

Tested by

no test coverage detected