aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2020-05-12 14:14:38 -0500
committersonartech <sonartech@sonarsource.com>2020-06-11 20:04:56 +0000
commit3352e9f378dfb2929a19d362f4b5ae21bd33f0db (patch)
tree561d899ce84e2faaffc8bfca6718c1158443c613 /sonar-plugin-api
parent46a49f0b5ef205f5632b44dc07221eed79ec803d (diff)
downloadsonarqube-3352e9f378dfb2929a19d362f4b5ae21bd33f0db.tar.gz
sonarqube-3352e9f378dfb2929a19d362f4b5ae21bd33f0db.zip
SONAR-13390 SONAR-13391 New Code Reference Branch
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/batch/scm/ScmProvider.java12
1 files changed, 12 insertions, 0 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 be44d13eb41..379a3cfddf3 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 java.io.File;
import java.nio.file.Path;
+import java.time.Instant;
import java.util.Map;
import java.util.Set;
import javax.annotation.CheckForNull;
@@ -82,6 +83,17 @@ public abstract class ScmProvider {
}
/**
+ * Find the date of the merge base between the current branch and the given reference branch.
+ *
+ * @return null if the SCM provider was not able to compute the date
+ * @since 8.4
+ */
+ @CheckForNull
+ public Instant forkDate(String referenceBranchName, Path rootBaseDir) {
+ return null;
+ }
+
+ /**
* The relative path from SCM root
* @since 7.0
*/