]> source.dussan.org Git - jgit.git/commit
Support more of AutoCRLF 30/4530/2
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 31 Oct 2011 22:30:11 +0000 (23:30 +0100)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Tue, 10 Jan 2012 22:15:52 +0000 (23:15 +0100)
commit76dd9d1d46007fc49639d264631658114f4fbd24
tree63800bce5975e8d93db22c3bf4bdcce845c4c21d
parent6a582970bfa1120dfe99e7568ea2d471dfc59387
Support more of AutoCRLF

This patch introduces CRLF handling to the DirCacheCheckout and
WorkingTreeIterator supporting the AutoCRLF for add, checkout
reset and status and hopefully some other places that depende
on the underlying logic of the affected API's.

The patch includes test cases for the Status command provided by
Tomasz Zarna for bug 353867.

The core.eol and core.safecrlf options are not yet supported.

Bug: 301775
Bug: 353867
Change-Id: I2280a2dc0698829475de6a662a6c6e80b1df7663
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/AddCommandTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/PathCheckoutCommandTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/DirCacheCheckoutTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/io/AutoCRLFOutputStreamTest.java [new file with mode: 0644]
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/io/EolCanonicalizingInputStreamTest.java
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/ObjectDirectoryInserter.java
org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java
org.eclipse.jgit/src/org/eclipse/jgit/util/IO.java
org.eclipse.jgit/src/org/eclipse/jgit/util/io/AutoCRLFOutputStream.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/util/io/EolCanonicalizingInputStream.java