gitext-rs / git-stack

Stacked branch management for Git
Apache License 2.0
505 stars 19 forks source link

fix(graph): Don't lose branches with --onto #141

Closed epage closed 2 years ago

epage commented 2 years ago

We were trying to rebase the onto onto itself, causing us to lose everything. but the common commits.

Overall, it makes sense that if a branch is either the --base or --onto, that we wouldn't touch it, so let's treat them as protected.