diff options
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 */ |