MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / resolve_shell_path

Function resolve_shell_path

src/hooks/cursor_shell.rs:344–351  ·  view source on GitHub ↗
(cwd: &Path, value: &str)

Source from the content-addressed store, hash-verified

342}
343
344fn resolve_shell_path(cwd: &Path, value: &str) -> PathBuf {
345 let path = Path::new(value);
346 if path.is_absolute() {
347 path.to_path_buf()
348 } else {
349 cwd.join(path)
350 }
351}
352
353/// Resolves the filesystem root of the worktree created by a
354/// `git worktree add` command. git resolves the worktree path against

Callers 2

git_explicit_work_dirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected