diff options
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.java | 2 |
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(); |