diffs.nvim/lua/diffs
Barrett Ruth 7781904d65 feat: add unified diff conflict resolution for unmerged files
Problem: pressing du on a UU file in fugitive status fell through to
the unstaged path, where get_index_content(:0:) fails because unmerged
files have no stage 0 entry. The fallback produced a useless diff of
HEAD vs working file with conflict markers shown as changes.

Solution: add a merge.lua module that diffs git show :2: (ours) vs
:3: (theirs), displays the result with full syntax and intra-line
highlighting, and provides resolution keymaps (doo/dot/dob/don/]x/[x)
that write back to the working file's conflict markers. Hunks are
matched to conflict regions by comparing diff del-lines against each
region's ours content. Resolved hunks are tracked per-buffer with
virtual text. commands.lua gains an unmerged branch in gdiff_file and
read_buffer, and plugin/diffs.lua registers Plug(diffs-merge-*)
mappings.
2026-02-08 17:48:15 -05:00
..
commands.lua feat: add unified diff conflict resolution for unmerged files 2026-02-08 17:48:15 -05:00
conflict.lua refactor(conflict): export replace_region and refresh 2026-02-08 17:46:16 -05:00
debug.lua fix(debug): resolve sparse array crash in json dump 2026-02-07 00:50:02 -05:00
diff.lua fix(diff): strip linematch from char-level diff 2026-02-07 00:50:08 -05:00
fugitive.lua refactor(fugitive): return status character from parse_file_line 2026-02-08 17:45:51 -05:00
git.lua feat(git): add index and working tree content retrieval 2026-02-04 22:23:09 -05:00
health.lua feat(highlight): add character-level intra-line diff highlighting 2026-02-06 13:53:58 -05:00
highlight.lua fix(ci): remove unused variable 2026-02-07 15:12:44 -05:00
init.lua feat(conflict): detect and resolve inline merge conflict markers 2026-02-07 17:38:34 -05:00
lib.lua feat(highlight): add character-level intra-line diff highlighting 2026-02-06 13:53:58 -05:00
log.lua feat: add :Gdiff, :Gvdiff, :Ghdiff commands for unified diff view 2026-02-04 19:52:17 -05:00
merge.lua feat: add unified diff conflict resolution for unmerged files 2026-02-08 17:48:15 -05:00
parser.lua feat(highlight): add treesitter context padding from disk 2026-02-07 13:05:53 -05:00