Martin Wiesner | b4ac48e | 2023-02-02 15:39:57 +0100 | [diff] [blame] | 1 | # Handle line endings automatically for files detected as text |
| 2 | # and leave all files detected as binary untouched. |
| 3 | * text=auto |
| 4 | |
| 5 | # |
| 6 | # The above will handle all files NOT found below |
| 7 | # |
| 8 | # These files are text and should be normalized (Convert crlf => lf) |
| 9 | *.adoc text eol=lf |
| 10 | *.html text eol=lf |
| 11 | *.java text eol=lf |
| 12 | *.jspf text eol=lf |
| 13 | *.md text eol=lf |
| 14 | *.properties text eol=lf |
| 15 | *.sh text eol=lf |
| 16 | *.txt text eol=lf |
| 17 | *.xml text eol=lf |
| 18 | *.xsd text eol=lf |
| 19 | *.xsl text eol=lf |
| 20 | *.yml text eol=lf |
| 21 | |
| 22 | LICENSE text eol=lf |
| 23 | NOTICE text eol=lf |
| 24 | |
| 25 | # These files are binary and should be left untouched |
| 26 | # (binary is a macro for -text -diff) |
| 27 | *.class binary |
| 28 | *.dll binary |
| 29 | *.ear binary |
| 30 | *.gif binary |
| 31 | *.ico binary |
| 32 | *.jar binary |
| 33 | *.jpg binary |
| 34 | *.jpeg binary |
| 35 | *.png binary |
| 36 | *.ser binary |
| 37 | *.so binary |
| 38 | *.war binary |
| 39 | *.zip binary |
| 40 | *.exe binary |
| 41 | *.gz binary |
| 42 | |
| 43 | #Windows |
| 44 | *.bat text eol=crlf |
| 45 | *.cmd text eol=crlf |
| 46 | |
| 47 | #Unix/Linux |
| 48 | *.sh text eol=lf |