Custom merge tool like vimdiff1? #5346
Replies: 2 comments 3 replies
-
You could write a custom shell script wrapper which invokes
|
Beta Was this translation helpful? Give feedback.
-
For people looking for a similar workflow, there is the jj-diffconflicts Neovim plugin. It makes use of the materialized conflicts so that in some situations it can automatically resolve parts of the conflicts, leaving only the ambigous parts for the human to resolve. For example, given the following situation: Base:
Left:
Right:
The following conflict is generated by Jujutsu:
When using the When using Notice that that there is no need to resolve the changes to "Beware the Jubjub bird, and shun" and "The frumious Bandersnatch!", since only one side of the conflict touched those lines, and so Jujutsu already knows how to pick the correct ones. In addition, |
Beta Was this translation helpful? Give feedback.
-
I'm trying to set up a custom merge tool that works like vimdiff1:
The problem is this, from the Jujutsu docs linked above:
But $output contains both sides of the conflict as well as the conflict markers (or is otherwise empty).
Is there a way to do something like this?
I only want $left and $right when resolving the conflict, and I want the contents of $left to be the file that jj reads after the merge tool exits.
Beta Was this translation helpful? Give feedback.
All reactions