Repository navigation
add support for reporting a binary file is in a conflicted state - #6072
Merged
Merged
Conversation
4 tasks done
outofambit
suggested changes
Nov 1, 2018
outofambit
left a comment
Contributor
There was a problem hiding this comment.
this makes sense and is a great next step on this. one request to remove the UI TODO but other than that i'm good with this
Member
Author
|
🍎 |
outofambit
approved these changes
Nov 1, 2018
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
While I dig into #6063 about the Git internals, this PR helps to adapt the shape of the data returned by
getStatus- using a number to represent the conflicted files isn't helpful for binary files, so I've created a new shape:Description
throw new ErrorI've added in here to ensure an unrepresentable state is not encountered, but it'd be cool to maybe figure that out once I've gotten improve conflict detection for binary files #6063 ready for reviewAppFileStatusto string enums for readability, but it also results in a bit less JS being emitted because it no longer uses numbers for the backing storeRelease notes
Notes: no-notes