Skip to content

Commit

Permalink
changed gitattributes to be a java template
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhas Kurapati <[email protected]>
  • Loading branch information
prabhask5 committed Nov 24, 2023
1 parent 72ee206 commit 017bfff
Showing 1 changed file with 38 additions and 12 deletions.
50 changes: 38 additions & 12 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,12 +1,38 @@
* text eol=lf
*.bat binary
*.zip binary
*.exe binary
*.epub binary
*.pdf binary
*.vsdx binary
*.doc binary
*.bcfks binary
*.crt binary
*.p12 binary
*.txt text=auto
# Java sources
*.java text diff=java
*.kt text diff=kotlin
*.groovy text diff=java
*.scala text diff=java
*.gradle text diff=java
*.gradle.kts text diff=kotlin

# These files are text and should be normalized (Convert crlf => lf)
*.css text diff=css
*.scss text diff=css
*.sass text
*.df text
*.htm text diff=html
*.html text diff=html
*.js text
*.jsp text
*.jspf text
*.jspx text
*.properties text
*.tld text
*.tag text
*.tagx text
*.xml text

# These files are binary and should be left untouched
# (binary is a macro for -text -diff)
*.class binary
*.dll binary
*.ear binary
*.jar binary
*.so binary
*.war binary
*.jks binary

# Common build-tool wrapper scripts ('.cmd' versions are handled by 'Common.gitattributes')
mvnw text eol=lf
gradlew text eol=lf

0 comments on commit 017bfff

Please sign in to comment.