Commit a13268d
fix: don't suggest stacking base branch onto itself (#51)
When running `stack status` on the base branch (e.g., main), the command
would incorrectly offer to add it to a stack with itself as parent.
Accepting this created a circular dependency (main → main).
Now detects when the current branch is the base branch and shows a
helpful message instead of the problematic prompt.
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent e434572 commit a13268d
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
146 | 154 | | |
147 | 155 | | |
148 | 156 | | |
| |||
0 commit comments