diff --git a/Ada.gitattributes b/Ada.gitattributes new file mode 100644 index 0000000..831845b --- /dev/null +++ b/Ada.gitattributes @@ -0,0 +1,6 @@ +# Handle line endings automatically for files detected as text +# and leave all files detected as binary untouched. +* text=auto + +# Ada files +*.ada text diff=ada diff --git a/Ballerina.gitattributes b/Ballerina.gitattributes index 53645c4..c9682c1 100644 --- a/Ballerina.gitattributes +++ b/Ballerina.gitattributes @@ -7,7 +7,7 @@ # # These files are text and should be normalized (Convert crlf => lf) *.bal text -*.css text +*.css text diff=css *.df text *.htm text diff=html *.html text diff=html diff --git a/Common.gitattributes b/Common.gitattributes index d993e51..c6ee55d 100644 --- a/Common.gitattributes +++ b/Common.gitattributes @@ -9,6 +9,7 @@ # # Documents +*.bibtex text diff=bibtex *.doc diff=astextplain *.DOC diff=astextplain *.docx diff=astextplain @@ -20,7 +21,7 @@ *.rtf diff=astextplain *.RTF diff=astextplain *.md text -*.tex text +*.tex text diff=tex *.adoc text *.textile text *.mustache text diff --git a/Drupal.gitattributes b/Drupal.gitattributes index 65efbdd..ebebc1c 100644 --- a/Drupal.gitattributes +++ b/Drupal.gitattributes @@ -19,7 +19,7 @@ # Auto-detect text files, ensure they use LF. * text=auto eol=lf -*.css text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 +*.css text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=css *.engine text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php *.html text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=html *.inc text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php diff --git a/Fortran.gitattributes b/Fortran.gitattributes new file mode 100644 index 0000000..df0aef0 --- /dev/null +++ b/Fortran.gitattributes @@ -0,0 +1,9 @@ +# Handle line endings automatically for files detected as text +# and leave all files detected as binary untouched. +* text=auto + +# Fortran files +*.f text diff=fortran +*.f90 text diff=fortran +*.f95 text diff=fortran +*.f03 text diff=fortran diff --git a/Fountain.gitattributes b/Fountain.gitattributes new file mode 100644 index 0000000..5211f80 --- /dev/null +++ b/Fountain.gitattributes @@ -0,0 +1,8 @@ +# Handle line endings automatically for files detected as text +# and leave all files detected as binary untouched. +* text=auto + +# Fountain files +*.fountain text diff=fountain +*.pdf binary +*.fdx text diff --git a/Go.gitattributes b/Go.gitattributes index 175ebc8..f70c678 100644 --- a/Go.gitattributes +++ b/Go.gitattributes @@ -2,4 +2,4 @@ # line endings. Windows users contributing to Go will need to use a # modern version of git and editors capable of LF line endings. -*.go -text +*.go -text diff=golang diff --git a/Java.gitattributes b/Java.gitattributes index 943a29b..168c861 100644 --- a/Java.gitattributes +++ b/Java.gitattributes @@ -6,7 +6,7 @@ # The above will handle all files NOT found below # # These files are text and should be normalized (Convert crlf => lf) -*.css text +*.css text diff=css *.df text *.htm text diff=html *.html text diff=html @@ -32,7 +32,7 @@ *.ear binary *.gif binary *.ico binary -*.jar binary +*.jar binary diff=java *.jpg binary *.jpeg binary *.png binary diff --git a/Lua.gitattributes b/Lua.gitattributes index 0eb17e1..a6d6a8d 100644 --- a/Lua.gitattributes +++ b/Lua.gitattributes @@ -7,4 +7,4 @@ # Luadoc output # ============= *.html text diff=html -*.css text +*.css text diff=css diff --git a/Matlab.gitattributes b/Matlab.gitattributes index 12d6a39..e338f94 100644 --- a/Matlab.gitattributes +++ b/Matlab.gitattributes @@ -4,8 +4,8 @@ # Source files # ============ -*.m text -*.mu text +*.m text diff=matlab +*.mu text diff=matlab # Caution: *.m also matches Mathematica packages. diff --git a/Servoy.gitattributes b/Servoy.gitattributes index 1c6065f..79add6c 100644 --- a/Servoy.gitattributes +++ b/Servoy.gitattributes @@ -7,5 +7,5 @@ *.obj -text *.dbi -text *.sec -text -*.css -text -*.js eol=lf \ No newline at end of file +*.css -text diff=css +*.js eol=lf