abhinav / git-spice

Manage stacked Git branches
https://abhinav.github.io/git-spice/
GNU General Public License v3.0
220 stars 11 forks source link

Wrong branch restack warning/suggestion #308

Closed messense closed 2 months ago

messense commented 2 months ago
$ gs branch checkout
Select a branch to checkout: rust-1.80
WRN rust-1.80: needs to be restacked: run 'gs branch restack rust-1.80'

$ gs branch restack rust-1.80
FTL gs: unexpected argument rust-1.80

$ gs --version
git-spice 0.3.0 (98e53564628a2dd853861a1be6f2b4d3fea9753f 2024-07-24T20:23:19Z)

I think it should be gs branch restack?

abhinav commented 2 months ago

Yes, you’re right. Thanks for catching this! It should be either just “gs branch restack” or with the —branch flag. I should be able to fix this next week. (And of course, a PR is more than welcome if you’d prefer to fix it.)