(slug: string)
| 227 | // `+` is valid in git branch names and filesystem paths but NOT in the |
| 228 | // slug-segment allowlist ([a-zA-Z0-9._-]), so the mapping is injective. |
| 229 | function flattenSlug(slug: string): string { |
| 230 | return slug.replaceAll('/', '+') |
| 231 | } |
| 232 | |
| 233 | export function worktreeBranchName(slug: string): string { |
| 234 | return `worktree-${flattenSlug(slug)}` |
no outgoing calls
no test coverage detected