(slug: string)
| 215 | // `+` is valid in git branch names and filesystem paths but NOT in the |
| 216 | // slug-segment allowlist ([a-zA-Z0-9._-]), so the mapping is injective. |
| 217 | function flattenSlug(slug: string): string { |
| 218 | return slug.replaceAll('/', '+') |
| 219 | } |
| 220 | |
| 221 | export function worktreeBranchName(slug: string): string { |
| 222 | return `worktree-${flattenSlug(slug)}` |
no outgoing calls
no test coverage detected