Make git worktrees opt-in (worktree.enabled or --worktree) #5

Merged
mathieu merged 1 commit from lain/worktree-default-off-20261102144257 into main 2026-11-02 13:46:40 +00:00
Collaborator

Git worktrees are no longer created by default inside a repository.

  • worktree.enabled now defaults to false; set it to true to opt in.
  • dash run --worktree enables a worktree for a single run, overriding the config.
  • Default template, examples, README and tests updated accordingly.

Verified: gofmt, go vet ./..., go test ./internal/...; dry runs show no worktree mount by default and a worktree mount with --worktree.

Git worktrees are no longer created by default inside a repository. - `worktree.enabled` now defaults to `false`; set it to `true` to opt in. - `dash run --worktree` enables a worktree for a single run, overriding the config. - Default template, examples, README and tests updated accordingly. Verified: `gofmt`, `go vet ./...`, `go test ./internal/...`; dry runs show no worktree mount by default and a worktree mount with `--worktree`.
Make git worktrees opt-in (worktree.enabled or --worktree)
All checks were successful
ci / test (pull_request) Successful in 1m15s
247dfc0e03
mathieu deleted branch lain/worktree-default-off-20261102144257 2026-11-02 13:46:40 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
mathieu/dash!5
No description provided.