(cwd: &Path, value: &str)
| 342 | } |
| 343 | |
| 344 | fn 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 |
no outgoing calls
no test coverage detected