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

Add guidance for resolving merge conflicts for generated files #133

Open
lazytype opened this issue Aug 4, 2020 · 1 comment
Open

Add guidance for resolving merge conflicts for generated files #133

lazytype opened this issue Aug 4, 2020 · 1 comment

Comments

@lazytype
Copy link

lazytype commented Aug 4, 2020

IIRC, Facebook has a custom merge driver for Mercurial that can automatically resolve conflicts for generated files. Before this was in place I believe one had to manually re-generate code that had conflicts. Would it be possible to:

  • open source the merge driver(s)
  • also provide them for Git
  • document these, or what to do in the absence of these
@jjergus
Copy link
Contributor

jjergus commented Aug 28, 2020

open source the merge driver(s)

I think the relevant code is here: https://github.com/facebookexperimental/eden/blob/master/eden/scm/edenscm/hgext/mergedriver.py

Unfortunately I can't find any good documentation, but there are some tests that can be used as examples: https://github.com/facebookexperimental/eden/search?q=mergedriver&unscoped_q=mergedriver

I agree this should be mentioned somewhere in this repository and better documented, keeping this issue open for that.

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