jgit/org.eclipse.jgit.test
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
..
.settings Disable Eclipse warning about unrecognized @SuppressWarnings value 2018-10-17 10:40:36 +09:00
META-INF Apache MINA sshd client 2018-11-13 10:49:26 -08:00
exttst/org/eclipse/jgit Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
resources/org/eclipse/jgit/transport/ssh Apache MINA sshd client 2018-11-13 10:49:26 -08:00
src/org/eclipse/jgit Apache MINA sshd client: test & fix password authentication 2018-11-17 07:28:08 -08:00
tst/org/eclipse/jgit Undo treating blobs with NULs as a single line 2018-11-26 00:30:21 +01:00
tst-rsrc Apache MINA sshd client 2018-11-13 10:49:26 -08:00
.classpath Apache MINA sshd client 2018-11-13 10:49:26 -08:00
.gitignore Fix test setup for Eclipse Photon and greater 2018-11-02 18:50:26 +01:00
.project Remove references to org.eclipse.jgit.java7 2016-08-05 11:22:27 +09:00
BUILD Move SshTestGitServer to new bundle org.eclipse.jgit.junit.ssh 2018-11-17 07:28:08 -08:00
build.properties Apache MINA sshd client 2018-11-13 10:49:26 -08:00
org.eclipse.jgit.core--All-Tests (Java 8) (de).launch Fixed few locale dependent pgm tests 2016-01-02 17:41:58 +01:00
org.eclipse.jgit.core--All-Tests (Java 8).launch Fix classpath of test launch configurations 2015-11-21 00:33:43 +01:00
org.eclipse.jgit.core--All-Tests.launch Use JUnit4 for tests 2010-08-26 12:26:38 -05:00
org.eclipse.jgit.test-WalkEncryptionTest-Proxy.launch Adding AES Walk Encryption support in http://www.jets3t.org/ mode 2015-10-18 19:14:31 +00:00
org.eclipse.jgit.test-WalkEncryptionTest.launch Adding AES Walk Encryption support in http://www.jets3t.org/ mode 2015-10-18 19:14:31 +00:00
plugin.properties Fix plugin provider names to conform with release train requirement 2013-04-08 23:05:36 +02:00
pom.xml Move SshTestGitServer to new bundle org.eclipse.jgit.junit.ssh 2018-11-17 07:28:08 -08:00
tests.bzl Apache MINA sshd client 2018-11-13 10:49:26 -08:00