Replies: 1 comment 1 reply
-
I agree that the conflict marker situation in Git should be improved, but this isn't directly customizable in Git (you can't override |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
One of the things I want to improve by using git is conflict marker.
Text
Jujutsu's conflict marker looks pretty good to me.
One concern is the syntax highlighting of IDEs and editors.
And if you have less changes, it may be better to show two continuous diffs.
I think the consistent way is to use Unified Format.
Syntax highlighting problem may still not be solved, but I think we can lower the overhead if someonw need to implement highlighting because it is based on existing tools.
Binary
The current behavior of git when binary file conflict is very embarrassing.
I solve it with a very simple program that creates additional
base
andtheirs
files.Totally
We can also combine the above styles to handle a little smarter.
base
andtheirs
files.In summary, there are 4 styles that can be added.
CLI interface
Currently,
git merge
cannot be used as an argument likegit checkout --conflict=diff3 <path>
, and you need to use merge-settings.I want to see the
--conflict=
arguments ingit merge
.git merge featA git merge --abort git merge featA --conflict=diff3 # Try other conflict style
Beta Was this translation helpful? Give feedback.
All reactions