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

Function canonical_or_raw

atomic-cli/src/commands/git/linked_worktree.rs:162–164  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

160}
161
162fn canonical_or_raw(path: &Path) -> PathBuf {
163 fs::canonicalize(path).unwrap_or_else(|_| path.to_path_buf())
164}
165
166fn refusal(linked: &LinkedWorktree) -> CliError {
167 CliError::GitError {

Callers 1

detect_linked_worktreeFunction · 0.85

Calls 1

canonicalizeFunction · 0.50

Tested by

no test coverage detected