Skip to content

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

#7470 (closed)

How to test:

The best way is to make a few changes with glab stack and then use glab sync.

  1. use glab stack create to make a new stack
  2. make some code changes
  3. use glab stack save
  4. repeat 2-3 a few times if needed
  5. optionally use the glab stack amend command to change one of the previous branches (you can select one of the previous branches with glab stack move)
  6. 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

Merge request reports