diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2020-05-12 14:14:38 -0500 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-06-11 20:04:56 +0000 |
commit | 3352e9f378dfb2929a19d362f4b5ae21bd33f0db (patch) | |
tree | 561d899ce84e2faaffc8bfca6718c1158443c613 /sonar-plugin-api | |
parent | 46a49f0b5ef205f5632b44dc07221eed79ec803d (diff) | |
download | sonarqube-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.java | 12 |
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 */ |