]> source.dussan.org Git - jgit.git/commit
RawTextComparator.WS_IGNORE_CHANGE must not compare whitespace 73/163573/3
authorThomas Wolf <thomas.wolf@paranor.ch>
Tue, 26 May 2020 06:50:33 +0000 (08:50 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Thu, 28 May 2020 10:06:57 +0000 (12:06 +0200)
commit6f17f9ed3fdadec1e6995f42ca34f570c0dee1b5
treef526071a149a898828eaa79734c1ed5feb51c2a5
parent5a5d85a4a3407df5f9693ab36287e72726c512f6
RawTextComparator.WS_IGNORE_CHANGE must not compare whitespace

Only the presence or absence of whitespace is significant; but not the
actual whitespace characters. Don't compare whitespace bytes.

Compare the C git implementation at [1].

[1] https://github.com/git/git/blob/0d0e1e8/xdiff/xutils.c#L173

Bug: 563570
Change-Id: I2d0522b637ba6b5c8b911b3376a9df5daa9d4c27
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RawTextIgnoreWhitespaceChangeTest.java
org.eclipse.jgit/src/org/eclipse/jgit/diff/RawTextComparator.java