Replies: 2 comments 9 replies
-
I think you're looking for the documentation here: https://martinvonz.github.io/jj/latest/config/#3-way-merge-tools-for-conflict-resolution. Check that out first. Perhaps your own merge tool can work with that file-based API. |
Beta Was this translation helpful? Give feedback.
-
It's not immediately clear to me what you need help with. @martinvonz will correct me if I'm wrong, but AFAIK Another issue you may be having is that we configured [merge-tools.kdiff3]
merge-args = ["$base", "$left", "$right", "-o", "$output"] or you can create an extra merge tool $ jj config list --include-defaults merge-tools.kdiff3
merge-tools.kdiff3.merge-args = ["$base", "$left", "$right", "-o", "$output", "--auto"]
merge-tools.kdiff3.edit-args = ["--merge", "--cs", "CreateBakFiles=0", "--cs", "SkipDirStatus=1", "$left", "$right", "$output"] There's also the issue that BTW, the paid Beyond Compare has similar abilities to Finally, if all else doesn't work (e.g. if the the auto-resolution of whole-file conflicts makes If there is no relationship between My best guess is that you wanted to treat Footnotes
|
Beta Was this translation helpful? Give feedback.
-
Hi!
For context, I'm a newbie to jj, and didn't yet use it much in practice; that said, I do have some working knowledge of git (but not deep internals, and not all its commands/flags/incantations either).
I'd like to ask: in jj, given some 3 branches A, B, C, I would like to build a "three-way diff", for a user to be able to fully resolve/accept each difference/chunk by hand, for example with the kdiff3 GUI tool (or a builtin one in jj if present). The thing is,
I'm fine to call this tool on separate workspaces if that's the only way; that said, in such case I'd still be grateful for help how to do this and how to then build a final "merge commit" if the user accepted, that would include the specific final resolutions they selected for each "discrepancy area".
I'd be also super grateful if you could help me understand how I could do it via jujutsu's Rust API as well - if all goes well, I'd actually like to try and use this conflict resolution "embedded" in a utility app I'm trying to write in Rust.
TIA!
Beta Was this translation helpful? Give feedback.
All reactions