Chris@0: # Drupal git normalization Chris@0: # @see https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html Chris@0: # @see https://www.drupal.org/node/1542048 Chris@0: Chris@0: # Normally these settings would be done with macro attributes for improved Chris@0: # readability and easier maintenance. However macros can only be defined at the Chris@0: # repository root directory. Drupal avoids making any assumptions about where it Chris@0: # is installed. Chris@0: Chris@0: # Define text file attributes. Chris@0: # - Treat them as text. Chris@0: # - Ensure no CRLF line-endings, neither on checkout nor on checkin. Chris@0: # - Detect whitespace errors. Chris@0: # - Exposed by default in `git diff --color` on the CLI. Chris@0: # - Validate with `git diff --check`. Chris@0: # - Deny applying with `git apply --whitespace=error-all`. Chris@0: # - Fix automatically with `git apply --whitespace=fix`. Chris@0: Chris@0: *.config text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 Chris@0: *.css text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 Chris@0: *.dist text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 Chris@0: *.engine text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php Chris@0: *.html text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=html Chris@0: *.inc text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php Chris@0: *.install text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php Chris@0: *.js text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 Chris@0: *.json text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 Chris@0: *.lock text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 Chris@0: *.map text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 Chris@0: *.md text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 Chris@0: *.module text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php Chris@0: *.php text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php Chris@0: *.po text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 Chris@0: *.profile text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php Chris@0: *.script text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 Chris@0: *.sh text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php Chris@0: *.sql text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 Chris@0: *.svg text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 Chris@0: *.theme text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php Chris@0: *.twig text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 Chris@0: *.txt text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 Chris@0: *.xml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 Chris@0: *.yml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 Chris@0: Chris@0: # Define binary file attributes. Chris@0: # - Do not treat them as text. Chris@0: # - Include binary diff in patches instead of "binary files differ." Chris@0: *.eot -text diff Chris@0: *.exe -text diff Chris@0: *.gif -text diff Chris@0: *.gz -text diff Chris@0: *.ico -text diff Chris@0: *.jpeg -text diff Chris@0: *.jpg -text diff Chris@0: *.otf -text diff Chris@0: *.phar -text diff Chris@0: *.png -text diff Chris@0: *.svgz -text diff Chris@0: *.ttf -text diff Chris@0: *.woff -text diff Chris@0: *.woff2 -text diff