aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-09-24 15:15:05 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2014-09-25 16:25:24 +0200
commitb375ce53532d11c75c9c920b36f0c4692d123c87 (patch)
tree5d6204c5574c3b354fa99afa0c7fb2a44ce78493 /sonar-plugin-api
parent78fbdc2a8445e9131a10d2210b88d0e4d9927a14 (diff)
downloadsonarqube-b375ce53532d11c75c9c920b36f0c4692d123c87.tar.gz
sonarqube-b375ce53532d11c75c9c920b36f0c4692d123c87.zip
SONAR-5642 Initial work on Git provider
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/batch/scm/ScmProvider.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/scm/ScmProvider.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/scm/ScmProvider.java
index 1fd3327d7c3..2630f95b5e6 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/scm/ScmProvider.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/scm/ScmProvider.java
@@ -21,6 +21,7 @@ package org.sonar.api.batch.scm;
import org.sonar.api.BatchExtension;
import org.sonar.api.batch.InstantiationStrategy;
+import org.sonar.api.batch.fs.FileSystem;
import org.sonar.api.batch.fs.InputFile;
import java.io.File;
@@ -47,14 +48,14 @@ public interface ScmProvider extends BatchExtension {
* Compute blame of the provided files. Computation can be done in parallel.
* If there is an error that prevent to blame a file then an exception should be raised.
*/
- void blame(Iterable<InputFile> files, BlameResultHandler handler);
+ void blame(FileSystem fs, Iterable<InputFile> files, BlameResult result);
/**
- * Callback for the provider to return results of blame per file.
+ * Callback for the provider to save results of blame per file.
*/
- public static interface BlameResultHandler {
+ public static interface BlameResult {
- void handle(InputFile file, List<BlameLine> lines);
+ void add(InputFile file, List<BlameLine> lines);
}