afnanenayet / diffsitter

A tree-sitter based AST difftool to get meaningful semantic diffs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Version Control Merge Conflict Resolution

nordlow opened this issue · comments

When will diffsitter be extended to assist git (and vcs'es) in resolving merge conflicts? Will that require an entirely different tool?

That's a good question, I honestly hadn't thought about that before, I understand the utility of it, I've definitely had to deal with some pretty nasty merge conflicts that arose when someone reformatted a codebase.

tl;dr I don't know but I'll think about it and see if I can spec out a plan.

One idea I'd already been mulling over is a source-map type thing that would allow diffsitter to show context before and after a diff but allow you to pick whether you wanted to see the context from the old or new document and I think you'd want to use something similar here where you just see the text from one of the documents and have the tool handle the mapping to the new document for you.