Repository navigation
Closed
Milestone
Description
This code from #6698 is not complete to support detecting and propagating when a git pull --rebase fails and the user needs to handle conflicts:
desktop/app/src/ui/dispatcher/error-handlers.ts
Lines 403 to 408 in 765521f
| // TODO: metrics | |
| // TODO: any other context? | |
| // TODO: where can I get this from in the event of a pull failing from a rebase? | |
| const baseBranch = '???' | |
| const targetBranch = '???' |
I need to wrap my head around:
- what the current behaviour is when testing to close out revert "--no-rebase" setting when app performs pull #6549
- what context should I set on a
pullthat might trigger rebase conflicts - how that meshes/overlaps with what we do inside
mergeConflictHandler
desktop/app/src/ui/dispatcher/error-handlers.ts
Lines 287 to 303 in 765521f
| if (gitContext == null) { | |
| return error | |
| } | |
| switch (gitContext.kind) { | |
| case 'pull': | |
| dispatcher.mergeConflictDetectedFromPull() | |
| break | |
| case 'merge': | |
| dispatcher.mergeConflictDetectedFromExplicitMerge() | |
| break | |
| } | |
| const { tip, theirBranch } = gitContext | |
| if (tip == null || tip.kind !== TipState.Valid) { | |
| return error | |
| } |
Any events we need to track as part of rebasing are already covered by #6550, so I'm ignoring those as part of this task
Activity