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

Function canonical_root

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

Source from the content-addressed store, hash-verified

1791}
1792
1793pub(super) fn canonical_root(root: &Path) -> CliResult<PathBuf> {
1794 fs::canonicalize(root).map_err(|error| {
1795 git_error(format!(
1796 "cannot resolve repository root '{}': {error}",
1797 root.display()
1798 ))
1799 })
1800}
1801
1802pub(super) fn git_error(message: impl Into<String>) -> CliError {
1803 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