Repository navigation
[rebase] detect and show a dialog containing what needs to be done - #6698
Conversation
fbb3935 to
9f709dd
Compare
|
For those who are following along with this PR, I've been working on a suite of tests around rebase scenarios in this repository: https://github.com/shiftkey/rebase-test-cases Why a separate repository?
The repository is setup with a I eventually want to move that repository under the |
373b371 to
8aee627
Compare
|
@billygriffin @ampinsk I've updated the PR to point out some ways in which this branch differs from the designs discussed around resolving conflicts - the designs pre-date our decision to let people dismiss the dialog, and maybe we should incorporate our learnings there. Happy to discuss in detail later in the week if you want to throw ideas around. |
|
@shiftkey @ampinsk Thanks for the description! I agree that it'll be important for people to get into a "clean" state prior to doing other major actions (switching branches, committing, etc.). My question is whether there's a "manual mode" equivalent of what we did with regular merge conflicts, or if this is a special case where it needs to happen through something more guided. Maybe let's go through a few scenarios on a call to figure that out. |
3569e2d to
0d41819
Compare
5823199 to
709bffd
Compare
709bffd to
5be61a2
Compare
fc620ab to
306a223
Compare
306a223 to
bf94f67
Compare
6bf1d27 to
fa9edd3
Compare
|
Advice for people testing out this PR - you'll need to trigger conflicts from the command line and then switch to Desktop, as the UI for this #6551 is not in scope until |
67dc8f0 to
0ef1a50
Compare
0ef1a50 to
ba24e76
Compare
Overview
Fixes #6548
This PR has evolved to cover detecting a rebase conflict and letting the user continue or abort. It's feature-flagged for development only so the dialog won't be shown until we're ready to ship it.
Description
The two flows I want to flesh out here are:
git pull --rebaseraises an error (see Option to rebase instead of automatically merge when pulling from upstream #3422 for tracking issue)I'll follow up on some questions in the PR about the symmetry between Rebase conflicts and Merge conflicts as I'm thinking about them.
TODO:
RebaseConflictserror from dugite, show the dialoggit statusdetects that a rebase is in progress, show a dialog with what needs to be donepull --rebaseblocker behind feature flag to enable further testingDuplicated components
moved to investigate unifying rebase conflicts file rendering with merge conflicts file rendering #6904app/src/ui/rebase/conflict-files-list.tsxhas been extracted fromapp/src/ui/merge-conflicts/merge-conflicts-dialog.tsxand could be turned into a reusable component - I don't think I've tweaked it too much, gonna wait and see what recent changes @outofambit has been makingthis is fineapp/src/ui/rebase/rebase-conflicts-dialog.tsxhas been heavily influenced byapp/src/ui/merge-conflicts/merge-conflicts-dialog.tsxbut is likely to need a different flow (in particular to show progress while a rebase is occurring in the background) so I'm fine with keeping them separate for now rather than trying to unify them and be too cleverRelease notes
Notes: detect and guide user through a rebase when encountered in the app