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

Normalize and covert svg line endings to native on checkout #1801

Merged
merged 2 commits into from
Jul 14, 2017

Conversation

zweishar
Copy link

Changes proposed:

  • Normalize svg line endings on checkout

There is no .gitattributes entry for .svg files, which means we're relying on what ever the value of core.autocrlf is on each developers machine. I propose that we add a new entry to template/.gitattributes to set this on a per-repository basis.

In my opinion, .svg files should be treated as text so that their line endings will be converted to native on checkout. This makes sense to me because .svg files can be edited manually, and they are not binary files. If others disagree I'm happy to hear counter arguments.

@greylabel
Copy link
Contributor

Makes sense to me. Drupal core includes an entry for .svg as well -- http://cgit.drupalcode.org/drupal/tree/.gitattributes?h=8.3.x#n38

@@ -40,6 +40,7 @@
*.txt text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.xml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.yml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.svg text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This list should be kept in alphabetical order, though.

@grasmash grasmash merged commit 5e94d3f into acquia:8.x Jul 14, 2017
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

Successfully merging this pull request may close these issues.

3 participants