]> source.dussan.org Git - jgit.git/commit
Create an input stream that transforms LF to CRLF 75/7275/4
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 1 Sep 2012 07:56:51 +0000 (09:56 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Sat, 1 Sep 2012 07:56:51 +0000 (09:56 +0200)
commit0a9e010e14c96d97e902bf3c46ac1487ed6fbc18
tree39a538d5c7e4aa3889fbbd405bdb54f6dc078fc0
parent6b9b024c91ac71ecbc49fd36d0500c52cde01794
Create an input stream that transforms LF to CRLF

The transformation is the same as AutoCRLFOutputStream does, but
the direction is reversed. The tests are reused, but the implementation
derives somewhat from the EolCanonicalizingInputStream.

This stream will be used to compare blobs with LF line endings with
worktree data that has CRLF line endings.

Bug: 387501
Change-Id: I80d96e453e7f780dd464a89778de124cf35384e1
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/io/AutoCRLFInputStreamTest.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/util/io/AutoCRLFInputStream.java [new file with mode: 0644]