Skip to content

Commit 8864519

Browse files
Make Git use LF newlines in *.java, *.properties (#765)
* Make Git use LF newlines in *.java In .gitattributes, set crlf=input for *.java, so that: * "git checkout" does not convert newlines, so they remain LF, even if the system Git configuration on Windows specifies core.autocrlf=true. * "git add" converts CRLF to LF. This is intended to fix the numerous checkstyle errors about CRLF newlines that ci.jenkins.io reports when it builds the plugin on Windows. * Make Git use LF newlines in *.properties ci.jenkins.io reported checkstyle CRLF errors for *.properties, too.
1 parent 38cb7eb commit 8864519

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.java crlf=input
2+
*.properties crlf=input

0 commit comments

Comments
 (0)