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

branch track: track a whole untracked stack #300

Open abhinav opened 2 months ago

abhinav commented 2 months ago

Scenario:

git checkout main
git checkout -b feat1
git checkout -b feat2

At that point, we'd like gs branch track or an equivalent command to track main -> feat1 -> feat2, not main -> feat2. This would have to be opt-in to handle the case where the intermediate branch is untracked on purpose.

Possibilities: