Added -crlf attribute for test patch files
commit9124b680473997d5fdba98874f6d937b92b98965
authorConstantine Plotnikov <constantine.plotnikov@gmail.com>
Wed, 1 Apr 2009 10:59:50 +0000 (1 13:59 +0300)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 5 Apr 2009 20:19:43 +0000 (5 13:19 -0700)
treeb6bd466e2d47a664126cdf68345e90cb973a0414
parent1cf66ecd6196c4d3d3e60d0b6101a41e18e2a45c
Added -crlf attribute for test patch files

The method RawParseUtils.nextLF(byte[],int,char) used for parsing
patches expects \n as a line separator. However on MinGW git
uses \r\n as line separator for text files by default, and patch
files in egit/org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/patch
are treated as text files. This caused test suit failure. To prevent
test suit failure, "-crlf" attribute is added for patch files.

Signed-off-by: Constantine Plotnikov <constantine.plotnikov@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/patch/.gitattributes [new file with mode: 0644]