You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add configurable branch separator for branchSafe variable (#48)
* feat: replace {.branchSafe} with configurable separator for template values
Remove the {.branchSafe} template variable and introduce a unified
'separator' config option that controls how '/' and '\' in value
variables ({.branch}, {.repo.Owner}, {.env.*}) are replaced.
Path variables ({.repo.Main}, {.worktreeRoot}) are never transformed.
Default separator is '/' (backward compatible - slashes create subdirs).
Set to '-' or '_' for flat paths (e.g. feat/foo -> feat-foo).
Configuration: TOML key 'separator', env var WORKTREE_SEPARATOR.
Uses os.LookupEnv so empty string is a valid value.
* fix: skip empty separator E2E test on Windows
PowerShell treats empty environment variables as unset, so
WORKTREE_SEPARATOR="" is not observable via os.LookupEnv on Windows.
The `separator` setting controls how `/` and `\` characters in **value variables** (`{.branch}`, `{.repo.Owner}`, `{.env.*}`) are replaced. **Path variables** (`{.repo.Main}`, `{.worktreeRoot}`) are never transformed.
329
+
330
+
| Separator | Branch `feat/foo` becomes | Use case |
331
+
| --- | --- | --- |
332
+
|`/` (default) |`feat/foo` (nested dirs) | Standard layout |
0 commit comments