Repository navigation
propagate information to rebase conflicts dialog when pull fails - #6914
Merged
outofambit merged 2 commits intoFeb 26, 2019
Merged
Conversation
15 tasks done
shiftkey
force-pushed
the
shiftkey/rebase/detect-and-show-some-ui
branch
2 times, most recently
from
February 22, 2019 17:02
0ef1a50 to
ba24e76
Compare
shiftkey
force-pushed
the
shiftkey/rebase/propagate-context-with-error
branch
2 times, most recently
from
February 25, 2019 17:53
7f372a5 to
01ed530
Compare
shiftkey
changed the base branch from
shiftkey/rebase/detect-and-show-some-ui
to
development
February 25, 2019 17:53
shiftkey
marked this pull request as ready for review
February 25, 2019 17:56
shiftkey
force-pushed
the
shiftkey/rebase/propagate-context-with-error
branch
from
February 25, 2019 18:28
01ed530 to
b2391fa
Compare
Contributor
|
i agree that throwing an error is a reasonable approach to invalid tips in this situation. i think it should be impossible to get in that situation with the current UI too, no? |
Member
Author
I agree, and if there is a case I want to hear about it, because we should only be doing merges and rebases against valid branches. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Closes #6892
Description
This PR reviews the data that we provide to the error handlers when a pull fails, so we can either show the merge conflicts or rebase conflicts flow. The biggest change here is that we were passing in the
tip(which might not be on a branch). I've replaced this with more explicit properties:currentBranchis the one that the user is performing thegit pullorgit mergeontheirBranchis the other branch involved with the operationFor a merge, it should be the "other" branch. For a rebase, it should be the tracking branch.
I can't come up with a case where the user should be able to
git pullorgit mergefrom a detached HEAD or unknown tip, so I think we should just report an error if we're in an unexpected state, rather than attempt the operation.git pull --rebaseto trigger conflictsRelease notes
Notes: