Skip to content

Commit e5393fc

Browse files
committed
feat(vcs): add jujutsu support
1 parent 2acb67f commit e5393fc

2 files changed

Lines changed: 387 additions & 4 deletions

File tree

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Make resolving merge conflicts in Neovim a breeze.
2626

2727
- Neovim 0.10+
2828
- Git 2.25+ (for `git mergetool` support)
29+
- Jujutsu v0.18+ (optional, for `jj resolve` support)
2930

3031
## Installation
3132

@@ -62,6 +63,18 @@ git config --global mergetool.diffconflicts.trustExitCode true
6263
git config --global mergetool.keepBackup false
6364
```
6465

66+
Configure Jujutsu to use this plugin as a merge tool (requires the default `"diff"` conflict marker style):
67+
68+
```toml
69+
[merge-tools.diffconflicts]
70+
program = "nvim"
71+
merge-args = [
72+
"-c", "let g:jj_diffconflicts_marker_length=$marker_length",
73+
"-c", "DiffConflictsWithHistory", "$output", "$base", "$left", "$right",
74+
]
75+
merge-tool-edits-conflict-markers = true
76+
```
77+
6578
## Usage
6679

6780
To resolve merge conflicts, run:
@@ -70,6 +83,12 @@ To resolve merge conflicts, run:
7083
git mergetool
7184
```
7285

86+
Or for Jujutsu:
87+
88+
```sh
89+
jj resolve --tool diffconflicts
90+
```
91+
7392
This will open the conflicting file in Neovim with the `diffconflicts.nvim` plugin enabled.
7493
You can also manually open a file and then run the command:
7594

0 commit comments

Comments
 (0)