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
Allow specifying branch instead of --stack for commit
Remove the --stack option and accept an optional branch ID or name to
derive the stack to commit to. This lets users run commands like `but
commit -m "message" x4` or `but commit my-branch-name`.
Changes:
- CLI: replace `--stack`/-s with a positional/optional `branch` argument.
- commit API: rename `stack_hint` to `branch_hint` and thread it through callers.
- Selection logic: update select_stack to accept a CommandContext, match exact branch names first, then attempt to parse CLI IDs and resolve branch CLI IDs to stacks, and improve error messages to reference branches.
- Main: pass `branch` through to the commit handler.
0 commit comments