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
{{ message }}
Repository navigation
Config option for automatic wt remove --no-delete-branch #2587
I was hoping to configure worktrunk so that it never deleted branches when calling wt remove. I see there is the --no-delete-branch command line flag, but as far as I can tell there is no way to use the config file to make it the default behavior. I would imagine it would look something like this:
Thanks for the suggestion. I searched the codebase and didn't find an existing implementation of a [remove] config section — the option is currently CLI-only at src/cli/mod.rs:407.
The closest precedent is the existing [merge] section which mirrors wt merge flags as boolean defaults (squash, commit, rebase, remove, verify, ff). A [remove] section with delete-branch = false would fit the same pattern.
I'll leave it for a maintainer to evaluate and prioritize.
Activity
worktrunk-bot commentedon May 4, 2026
Thanks for the suggestion. I searched the codebase and didn't find an existing implementation of a
[remove]config section — the option is currently CLI-only atsrc/cli/mod.rs:407.The closest precedent is the existing
[merge]section which mirrorswt mergeflags as boolean defaults (squash,commit,rebase,remove,verify,ff). A[remove]section withdelete-branch = falsewould fit the same pattern.I'll leave it for a maintainer to evaluate and prioritize.
max-sixty commentedon May 4, 2026
@worktrunk-bot we could add this
feat(config): add [remove] delete-branch config option (#2589)