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

Does this work with git mergetool? #2

Open
JobaDiniz opened this issue Oct 10, 2022 · 1 comment
Open

Does this work with git mergetool? #2

JobaDiniz opened this issue Oct 10, 2022 · 1 comment

Comments

@JobaDiniz
Copy link

Does this "merge driver" work with git mergetool? It seems the parameters git mergetool passes are different than %O %A %B.

@praqma-thi
Copy link

praqma-thi commented Oct 13, 2022

I haven't played much with mergetool, but from my experience they serve different purposes, so it might not make much sense to try and combine them.

I'd configure/use mergetool to provide a nicer user experience when resolving conflicts in plain text files. Whereas I'd only use a merge driver when an external application is required to even make sense of the merge (conflict).

For example (and the case that had me investigating merge drivers all those years ago):
I was helping a development team that did development in a third party GUI tool, their "code" were large XML files this tool would output. Every change they made completely scrambled those XML files, so merging changes by hand was near impossible. We used a merge driver to take the conflicting files and throw them back at the tool, which luckily shipped with the functionality to help merge those changes.

Hope that helps.

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

No branches or pull requests

2 participants