aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/main/java/org/sonar/scm/git
diff options
context:
space:
mode:
authorJacek <jacek.poreda@sonarsource.com>2022-01-25 10:46:10 +0100
committersonartech <sonartech@sonarsource.com>2022-01-25 20:03:05 +0000
commitbfdb1de3bf206209016eb34f5facd6322379325b (patch)
treed1cbf088bffa0157e1bfe98df33b69c63e4cb1a9 /sonar-scanner-engine/src/main/java/org/sonar/scm/git
parent8c00e44b06dc81136484e1541400ea766612d8d6 (diff)
downloadsonarqube-bfdb1de3bf206209016eb34f5facd6322379325b.tar.gz
sonarqube-bfdb1de3bf206209016eb34f5facd6322379325b.zip
Revert "SONAR-14929 - Detect trailing lines as new when it's a new change"
This reverts commit 1751acb739682f97c4d7e3528f16718129ecd2f7.
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org/sonar/scm/git')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scm/git/GitScmProvider.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scm/git/GitScmProvider.java b/sonar-scanner-engine/src/main/java/org/sonar/scm/git/GitScmProvider.java
index 784b9182af0..d9157b5a3ce 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/scm/git/GitScmProvider.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/scm/git/GitScmProvider.java
@@ -191,7 +191,7 @@ public class GitScmProvider extends ScmProvider {
// copied from DiffCommand so that we can use a custom DiffFormatter which ignores white spaces.
diffFmt.setRepository(repo);
diffFmt.setProgressMonitor(NullProgressMonitor.INSTANCE);
- diffFmt.setDiffComparator(RawTextComparator.DEFAULT);
+ diffFmt.setDiffComparator(RawTextComparator.WS_IGNORE_ALL);
Path workTree = repo.getWorkTree().toPath();
String relativePath = workTree.relativize(changedFile).toString();