Skip to content

feat(merge): add :DiffviewMergeFiles for external merge drivers#188

Merged
dlyongemallo merged 1 commit into
mainfrom
diffview_merge_files
May 20, 2026
Merged

feat(merge): add :DiffviewMergeFiles for external merge drivers#188
dlyongemallo merged 1 commit into
mainfrom
diffview_merge_files

Conversation

@dlyongemallo
Copy link
Copy Markdown
Owner

Opens a 3-way or 4-way merge view backed by on-disk file paths (output, optional base, left, right), suitable for use as Jujutsu's [merge-tools.diffview]. The output window uses RevType.LOCAL so :write flushes to disk; read-only sides use RevType.CUSTOM with a file reader. Layout is Diff4Mixed when base is provided, Diff3Hor otherwise.

Conflict-marker actions (<leader>co/ct/cb/ca, dx, 2do/3do, ]x/[x) operate on the output buffer and work unchanged.

Relates to #139 (comment) and sindrets#562.

Opens a 3-way or 4-way merge view backed by on-disk file paths
(`output`, optional `base`, `left`, `right`), suitable for use as
Jujutsu's `[merge-tools.diffview]`. The `output` window uses
`RevType.LOCAL` so `:write` flushes to disk; read-only sides use
`RevType.CUSTOM` with a file reader. Layout is `Diff4Mixed` when
`base` is provided, `Diff3Hor` otherwise.

Conflict-marker actions (`<leader>co/ct/cb/ca`, `dx`, `2do/3do`,
`]x`/`[x`) operate on the output buffer and work unchanged.
@dlyongemallo dlyongemallo merged commit b84b470 into main May 20, 2026
7 checks passed
@dlyongemallo dlyongemallo deleted the diffview_merge_files branch May 20, 2026 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant