Skip to content

add context about pull to rebase error handler #6892

Closed

Description

@shiftkey

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:

// 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:

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

  1. added this to the 1.6.3 milestone on Feb 20, 2019
  2. self-assigned this
    on Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions