Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Control Merge Conflict Resolution #780

Open
nordlow opened this issue Dec 22, 2023 · 2 comments
Open

Version Control Merge Conflict Resolution #780

nordlow opened this issue Dec 22, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@nordlow
Copy link

nordlow commented Dec 22, 2023

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

@nordlow nordlow added the enhancement New feature or request label Dec 22, 2023
@afnanenayet
Copy link
Owner

afnanenayet commented Dec 23, 2023

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.

@Rodrigodd
Copy link

Rodrigodd commented Jun 26, 2024

FYI, Git has a configuration for setting a merge driver (see https://github.com/Praqma/git-merge-driver). But from what I see, it does not help with the implementation. The merge driver just receives the three versions of the file and is fully responsible for merging them, adding merge conflict markers as needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants