annotate .gitattributes @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 4c8ae668cc8c
children
rev   line source
Chris@0 1 # Drupal git normalization
Chris@0 2 # @see https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
Chris@0 3 # @see https://www.drupal.org/node/1542048
Chris@0 4
Chris@0 5 # Normally these settings would be done with macro attributes for improved
Chris@0 6 # readability and easier maintenance. However macros can only be defined at the
Chris@0 7 # repository root directory. Drupal avoids making any assumptions about where it
Chris@0 8 # is installed.
Chris@0 9
Chris@0 10 # Define text file attributes.
Chris@0 11 # - Treat them as text.
Chris@0 12 # - Ensure no CRLF line-endings, neither on checkout nor on checkin.
Chris@0 13 # - Detect whitespace errors.
Chris@0 14 # - Exposed by default in `git diff --color` on the CLI.
Chris@0 15 # - Validate with `git diff --check`.
Chris@0 16 # - Deny applying with `git apply --whitespace=error-all`.
Chris@0 17 # - Fix automatically with `git apply --whitespace=fix`.
Chris@0 18
Chris@0 19 *.config text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
Chris@0 20 *.css text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
Chris@0 21 *.dist text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
Chris@0 22 *.engine text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php
Chris@0 23 *.html text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=html
Chris@0 24 *.inc text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php
Chris@0 25 *.install text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php
Chris@0 26 *.js text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
Chris@0 27 *.json text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
Chris@0 28 *.lock text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
Chris@0 29 *.map text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
Chris@0 30 *.md text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
Chris@0 31 *.module text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php
Chris@0 32 *.php text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php
Chris@0 33 *.po text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
Chris@0 34 *.profile text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php
Chris@0 35 *.script text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
Chris@0 36 *.sh text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php
Chris@0 37 *.sql text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
Chris@0 38 *.svg text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
Chris@0 39 *.theme text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php
Chris@0 40 *.twig text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
Chris@0 41 *.txt text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
Chris@0 42 *.xml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
Chris@0 43 *.yml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
Chris@0 44
Chris@0 45 # Define binary file attributes.
Chris@0 46 # - Do not treat them as text.
Chris@0 47 # - Include binary diff in patches instead of "binary files differ."
Chris@0 48 *.eot -text diff
Chris@0 49 *.exe -text diff
Chris@0 50 *.gif -text diff
Chris@0 51 *.gz -text diff
Chris@0 52 *.ico -text diff
Chris@0 53 *.jpeg -text diff
Chris@0 54 *.jpg -text diff
Chris@0 55 *.otf -text diff
Chris@0 56 *.phar -text diff
Chris@0 57 *.png -text diff
Chris@0 58 *.svgz -text diff
Chris@0 59 *.ttf -text diff
Chris@0 60 *.woff -text diff
Chris@0 61 *.woff2 -text diff