Repository navigation
improve conflict detection for binary files - #6063
Conversation
|
For reference, the command line flow is a bit tricky: I then Maybe that's fine for the purposes of this workflow? |
|
I think we could do a standalone pr for a |
This is my primary focus right now, and I'll update this branch once I have things to show off. Feel free to dig into things from the UI end as I haven't started on that area yet. |
|
@outofambit I've opened #6072 to get the right abstraction in place so that you can work on the UI for this. |
|
@shiftkey thank you! |
f7282c0 to
10dd59f
Compare
039cfe4 to
0bcb584
Compare
c992053 to
9eeb692
Compare
9eeb692 to
59f14b2
Compare
|
Alright, I think this is ready for a first round of review. I'd like to get feedback on these parts:
There's two tests for different binary conflicts currently, and I plan to add in some more tomorrow but the setup is tedious and I wanted to to focus on the code changes first. |
outofambit
left a comment
There was a problem hiding this comment.
this is looking good to me. i like the new conflict state model and i think that could help simplify some component logic.
one comment on a small cleanup thing, and i'd like to see a couple unit tests for binary-files.ts, but i think @shiftkey is already on it.
I wonder if we can collapse the ConflictFileStatus, AppFileStatus.Conflicted and AppFileStatus.Resolved into a single field. Right now a ConflictFileStatus of null means no conflicts, but we don't know if there were ever conflicts without cross-referencing AppFileStatus. Perhaps we could remove AppFileStatus.Resolved and have a third (and maybe fourth) type for ConflictFileStatus that effectively means "resolved", so that a ConflictState of null would coincide with unconflicted files and there would be a single field to check for conflict information. What do you think?
|
@outofambit yeah, i'm keen to see if we can keep moving towards an application-specific conflicts interface that makes sense. Happy to keep nudging things along while we're wrapping up 1.5.0. |
|
@outofambit just had to resolve a conflict from #6081 that prevented this from being merge |
Overview
As binary files don't contain conflicted markers, we need a different technique to detect when these are "resolved" in Git - the command line seems to prefer staging the change, so maybe we need to do that?
🌵🌵🌵 Depends on #6074 and #6072, go review those first🌵🌵🌵Relates to #6062
Description
getStatusso that it reports the binary file is conflictedmasteronce add support for reporting a binary file is in a conflicted state #6072 and move status tests away from chai #6074 are merged, so the diff just focuses on the necessary Git changesRelease notes
Notes: no-notes