E. Scott Daniels | 1fde8a5 | 2020-07-07 13:18:21 -0400 | [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 | *.h text diff=cpp |
| 9 | *.hpp text diff=cpp |
| 10 | *.c text diff=cpp |
| 11 | *.cpp text diff=cpp |
| 12 | *.css text |
| 13 | *.go text diff=golang |
| 14 | *.htm text diff=html |
| 15 | *.html text diff=html |
| 16 | *.java text diff=java |
| 17 | *.js text |
| 18 | *.jsp text |
| 19 | *.less text |
| 20 | *.properties text |
| 21 | *.py text diff=python |
| 22 | *.sql text |
| 23 | *.xml text |
| 24 | |
| 25 | # Denote all files that are truly binary and should not be modified. |
| 26 | *.png binary |
| 27 | *.jpg binary |