|
| 1 | +# See https://git-scm.com/docs/gitattributes. |
| 2 | + |
| 3 | +#------------------------------------------------------------------------------ |
| 4 | +# Text files. |
| 5 | +# |
| 6 | +# text |
| 7 | +# - Converts line endings to LF in the repository. |
| 8 | +# |
| 9 | +# eol=lf |
| 10 | +# - Normalizes line endings to LF on checkin and prevents conversion to CRLF |
| 11 | +# when the file is checked out. |
| 12 | +# |
| 13 | +# whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 14 | +# - Treats trailing whitespaces at the end of the line as an error. |
| 15 | +# - Does not treat blank lines added at the end of file as an error. |
| 16 | +# - Does not treat a space character that appears immediately before a tab |
| 17 | +# character in the initial indent part of the line as an error. |
| 18 | +# - Treats a tab character in the initial indent part of the line as an |
| 19 | +# error. |
| 20 | +# - Sets the tabwidth to 2. |
| 21 | +# |
| 22 | +# The whitespace configuration defines what diff and apply should consider |
| 23 | +# whitespace errors |
| 24 | +# - Errors are exposed by default in 'git diff --color'. |
| 25 | +# - Validate with 'git diff --check'. |
| 26 | +# - Deny applying with 'git apply --whitespace=error-all'. |
| 27 | +# - Fix automatically with 'git apply --whitespace=fix'. |
| 28 | +#------------------------------------------------------------------------------ |
| 29 | + |
| 30 | +*.config text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 31 | +*.css text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=css |
| 32 | +*.dist text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 33 | +*.engine text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php |
| 34 | +*.htm text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=html |
| 35 | +*.html text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=html |
| 36 | +*.inc text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php |
| 37 | +*.install text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php |
| 38 | +*.js text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 39 | +*.json text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 40 | +*.lock text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 41 | +*.map text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 42 | +*.md text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=markdown |
| 43 | +*.module text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php |
| 44 | +*.php text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php |
| 45 | +*.po text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 46 | +*.profile text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php |
| 47 | +*.sass text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 48 | +*.script text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 49 | +*.scss text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=css |
| 50 | +*.sh text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 51 | +*.sql text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 52 | +*.svg text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 53 | +*.theme text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php |
| 54 | +*.toml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 55 | +*.twig text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 56 | +*.txt text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 57 | +*.xml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 58 | +*.yaml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 59 | +*.yml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 60 | + |
| 61 | +#------------------------------------------------------------------------------ |
| 62 | +# Binary files. |
| 63 | +# |
| 64 | +# binary |
| 65 | +# - This is a macro for -text, -diff, -merge. |
| 66 | +#------------------------------------------------------------------------------ |
| 67 | + |
| 68 | +# Archive. |
| 69 | +*.iso binary |
| 70 | +*.tar binary |
| 71 | + |
| 72 | +# Compressed. |
| 73 | +*.bz2 binary |
| 74 | +*.gz binary |
| 75 | + |
| 76 | +# Compressed archive. |
| 77 | +*.phar binary |
| 78 | +*.rar binary |
| 79 | +*.tar.gz binary |
| 80 | +*.tgz binary |
| 81 | +*.zip binary |
| 82 | + |
| 83 | +# Adobe. |
| 84 | +*.ai binary |
| 85 | +*.eps binary |
| 86 | +*.pdf binary |
| 87 | +*.ps binary |
| 88 | +*.psd binary |
| 89 | + |
| 90 | +# Audio/video. |
| 91 | +*.mp3 binary |
| 92 | +*.mp4 binary |
| 93 | +*.oga binary |
| 94 | +*.ogg binary |
| 95 | +*.ogv binary |
| 96 | +*.ogx binary |
| 97 | +*.webm binary |
| 98 | + |
| 99 | +# Fonts. |
| 100 | +*.eot binary |
| 101 | +*.otf binary |
| 102 | +*.ttf binary |
| 103 | +*.woff binary |
| 104 | +*.woff2 binary |
| 105 | + |
| 106 | +# Images. |
| 107 | +*.bmp binary |
| 108 | +*.gif binary |
| 109 | +*.ico binary |
| 110 | +*.jfif binary |
| 111 | +*.jpe binary |
| 112 | +*.jpeg binary |
| 113 | +*.jpg binary |
| 114 | +*.png binary |
| 115 | +*.svgz binary |
| 116 | +*.tif binary |
| 117 | +*.tiff binary |
| 118 | +*.webp binary |
| 119 | + |
| 120 | +# Libre Office. |
| 121 | +*.odb binary |
| 122 | +*.odf binary |
| 123 | +*.odg binary |
| 124 | +*.odm binary |
| 125 | +*.odp binary |
| 126 | +*.ods binary |
| 127 | +*.odt binary |
| 128 | +*.otg binary |
| 129 | +*.otp binary |
| 130 | +*.ots binary |
| 131 | +*.ott binary |
| 132 | + |
| 133 | +# Microsoft Office. |
| 134 | +*.docx binary |
| 135 | +*.dotx binary |
| 136 | +*.potx binary |
| 137 | +*.pptx binary |
| 138 | +*.xlsx binary |
| 139 | +*.xltx binary |
| 140 | + |
| 141 | +# Microsoft Office (legacy). |
| 142 | +*.doc binary |
| 143 | +*.dot binary |
| 144 | +*.pot binary |
| 145 | +*.ppt binary |
| 146 | +*.xls binary |
| 147 | +*.xlt binary |
| 148 | + |
| 149 | +# Other. |
| 150 | +*.dll binary |
| 151 | +*.exe binary |
0 commit comments