jgit/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff
Thomas Wolf f974c9c790 Undo treating blobs with NULs as a single line
This partially reverts commit a551b646: revert the changes in
RawParseUtils.lineMap(). Forcing all blobs containing a NUL byte
as a single line causes blame to produce useless results as soon
as it hits any version containing a NUL byte.

Doing binary detection at this level also has the problem that the
user cannot control it. Not by setting the text attribute nor in any
other way.

This came up in bug 541036, where a Java source inadvertently
contained NUL bytes in strings. Even fixing this by using escapes
"\000" will not fix JGit's blame for this file because the past
versions will still contain the NUL byte.

Native git can blame that file from bug 541036 fine.

Added new tests verifying that blaming a text file containing a NUL
byte produces sensible results.

Bug: 541036
Change-Id: I8991bec88e9827cc096868c6026ea1890b6d0d32
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
2018-11-26 00:30:21 +01:00
..
AbstractDiffTestCase.java Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
DiffEntryTest.java Enable and fix 'Should be tagged with @Override' warning 2017-02-19 20:05:08 -04:00
DiffFormatterReflowTest.java Remove 'final' in parameter lists 2018-05-15 17:05:02 -04:00
DiffFormatterTest.java Fix DiffFormatter for diffs against working tree with autocrlf=true 2018-03-07 23:25:22 +01:00
EditListTest.java Suppress "Unlikely argument type for equals()" warnings in tests 2017-11-06 10:34:34 +01:00
EditTest.java Suppress "Unlikely argument type for equals()" warnings in tests 2017-11-06 10:34:34 +01:00
HistogramDiffTest.java Convert all JGit unit tests to JUnit 4 2010-12-31 14:00:05 -08:00
MyersDiffTest.java Delete DiffPerformanceTest 2010-11-01 14:09:51 -07:00
PatchIdDiffFormatterTest.java PatchIdDiffFormatterTest: Open Git and PatchIdDiffFormatter in try-with-resource 2016-02-12 14:07:53 +09:00
RawTextIgnoreAllWhitespaceTest.java Convert all JGit unit tests to JUnit 4 2010-12-31 14:00:05 -08:00
RawTextIgnoreLeadingWhitespaceTest.java Convert all JGit unit tests to JUnit 4 2010-12-31 14:00:05 -08:00
RawTextIgnoreTrailingWhitespaceTest.java Convert all JGit unit tests to JUnit 4 2010-12-31 14:00:05 -08:00
RawTextIgnoreWhitespaceChangeTest.java Convert all JGit unit tests to JUnit 4 2010-12-31 14:00:05 -08:00
RawTextLoadTest.java Introduce RawText#load. 2017-10-24 14:49:10 +02:00
RawTextTest.java Undo treating blobs with NULs as a single line 2018-11-26 00:30:21 +01:00
RenameDetectorTest.java Enable and fix warnings about redundant specification of type arguments 2017-02-20 22:47:23 +01:00
SimilarityIndexTest.java Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00