aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/main/java/org/sonar
diff options
context:
space:
mode:
authorBelen Pruvost <belen.pruvost@sonarsource.com>2022-01-17 20:52:02 +0100
committersonartech <sonartech@sonarsource.com>2022-01-21 20:03:22 +0000
commit1f6d6df116aa34289d08ecc227d29bb069d456e8 (patch)
treef74e2176e67c12ef395a7617b62fbad1cb3b410a /sonar-scanner-engine/src/main/java/org/sonar
parente2ee8eeba4e3c7b08cd929c56d0fb136d1cdf372 (diff)
downloadsonarqube-1f6d6df116aa34289d08ecc227d29bb069d456e8.tar.gz
sonarqube-1f6d6df116aa34289d08ecc227d29bb069d456e8.zip
SONAR-14929 - Detect trailing lines as new when it's a new change
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org/sonar')
-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 d9157b5a3ce..784b9182af0 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.WS_IGNORE_ALL);
+ diffFmt.setDiffComparator(RawTextComparator.DEFAULT);
Path workTree = repo.getWorkTree().toPath();
String relativePath = workTree.relativize(changedFile).toString();