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

.gitattributes `-merge` attribute is wrong #848

Closed
shana opened this issue Jun 28, 2018 · 0 comments
Closed

.gitattributes `-merge` attribute is wrong #848

shana opened this issue Jun 28, 2018 · 0 comments
Labels
bug

Comments

@shana
Copy link
Contributor

@shana shana commented Jun 28, 2018

The .gitattributes template is defined like this:

# Unity files
*.meta -text -merge=unityamlmerge
*.unity -text -merge=unityamlmerge
*.asset -text -merge=unityamlmerge
*.prefab -text -merge=unityamlmerge

...which is wrong, as -merge disables the merge tool (essentially making the whole thing a no-op).

Where it should be this:

# Unity files
*.meta -text merge=unityamlmerge diff
*.unity -text merge=unityamlmerge diff
*.asset -text merge=unityamlmerge diff
*.prefab -text merge=unityamlmerge diff

-text tells git not to do eol conversions, and diff tells git that these are text files that it can generate patches for

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.