feat(stacked-diffs): Create initial sync command
Description
Adds the initial sync command! This is the final piece to getting your branches back to GitLab. It also adds basic movement commands for the stack to get to the next, previous, first, and last layers and a fuzzy picker.
Tests are in the next MR as this was getting quite big
Related Issues
How to test:
The best way is to make a few changes with glab stack
and then use glab sync
.
- use
glab stack create
to make a new stack - make some code changes
- use
glab stack save
- repeat 2-3 a few times if needed
- optionally use the
glab stack amend
command to change one of the previous branches (you can select one of the previous branches withglab stack move
) - optionally add a merge conflict to test that part
Screenshots (if appropriate):
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms) -
Test gap
Edited by Gary Holtz