(
worktreePath: string,
filePath: string,
options: ValidatePathOptions = {},
)
| 176 | * @throws PathValidationError if path is invalid |
| 177 | */ |
| 178 | export function resolvePathInWorktree( |
| 179 | worktreePath: string, |
| 180 | filePath: string, |
| 181 | options: ValidatePathOptions = {}, |
| 182 | ): string { |
| 183 | validateRelativePath(filePath, options); |
| 184 | // Use resolve to handle any worktreePath (relative or absolute) |
| 185 | return resolve(worktreePath, normalize(filePath)); |
| 186 | } |
| 187 | |
| 188 | /** |
| 189 | * Validates a path for git commands. Lighter check that allows root. |
no test coverage detected