Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for merge.conflictStyle diff3/zdiff3 #707

Open
noahadvs opened this issue Feb 27, 2024 · 0 comments
Open

Add support for merge.conflictStyle diff3/zdiff3 #707

noahadvs opened this issue Feb 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@noahadvs
Copy link

When merge.conflictStyle is set to diff3/zdiff3, Gittyup will try to include the "base" code snippet in the "ours" code snippet when doing conflict resolution in the GUI. To support diff3 style, it would be better to add a "Use Base" action (or something equivalent) like the "Use Ours" and "Use Theirs" actions. The "base" snippet should only be used by the "Use Base" action (or something equivalent).

Screenshot of the issue in the GUI:

Screenshot_20240227_044653

diff3/zdiff3 conflictStyle is this:

<<<<<<< ours:sample.txt
or cleanly resolved because both sides changed the same way.
Conflict resolution is hard;
let's go shopping.
||||||| base:sample.txt
or cleanly resolved because both sides changed identically.
Conflict resolution is hard.
=======
or cleanly resolved because both sides changed the same way.
Git makes conflict resolution easy.
>>>>>>> theirs:sample.txt

The default conflictStyle is this:

<<<<<<< ours:sample.txt
Conflict resolution is hard;
let's go shopping.
=======
Git makes conflict resolution easy.
>>>>>>> theirs:sample.txt
@Murmele Murmele added the enhancement New feature or request label Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants