Timo Tietavainen | 8c86973 | 2019-11-08 08:23:21 +0200 | [diff] [blame] | 1 | # https://help.github.com/articles/dealing-with-line-endings/ |
| 2 | |
| 3 | # Set the default behavior, in case people don't have core.autocrlf set. |
| 4 | * text=auto |
| 5 | |
| 6 | # Explicitly declare text files you want to always be normalized |
| 7 | # and converted to native line endings on checkout. |
| 8 | *.c text diff=cpp |
| 9 | *.cpp text diff=cpp |
| 10 | *.css text |
| 11 | *.go text diff=golang |
| 12 | *.htm text diff=html |
| 13 | *.html text diff=html |
| 14 | *.java text diff=java |
| 15 | *.js text |
| 16 | *.jsp text |
| 17 | *.less text |
| 18 | *.properties text |
| 19 | *.py text diff=python |
| 20 | *.sql text |
| 21 | *.xml text |
| 22 | |
| 23 | # Denote all files that are truly binary and should not be modified. |
| 24 | *.png binary |
| 25 | *.jpg binary |