|
| 1 | +# Define text file attributes. |
| 2 | +# - Treat them as text. |
| 3 | +# - Ensure no CRLF line-endings, neither on checkout nor on checkin. |
| 4 | +# - Detect whitespace errors. |
| 5 | +# - Exposed by default in `git diff --color` on the CLI. |
| 6 | +# - Validate with `git diff --check`. |
| 7 | +# - Deny applying with `git apply --whitespace=error-all`. |
| 8 | +# - Fix automatically with `git apply --whitespace=fix`. |
| 9 | +*.md text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 10 | +*.tf text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 11 | +*.yml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 12 | +*.yaml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 13 | +Makefile text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 14 | +.githooks/* text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 |
| 15 | + |
| 16 | +# Define binary file attributes. |
| 17 | +# - Do not treat them as text. |
| 18 | +# - Include binary diff in patches instead of "binary files differ." |
| 19 | +*.gif -text diff |
| 20 | +*.jpeg -text diff |
| 21 | +*.jpg -text diff |
| 22 | +*.png -text diff |
| 23 | +*.svgz -text diff |
0 commit comments