Class RevCommitRepositoryCallback
- java.lang.Object
-
- org.datadog.jenkins.plugins.datadog.util.git.RevCommitRepositoryCallback
-
- All Implemented Interfaces:
Serializable
,org.jenkinsci.plugins.gitclient.RepositoryCallback<org.eclipse.jgit.revwalk.RevCommit>
public final class RevCommitRepositoryCallback extends Object implements org.jenkinsci.plugins.gitclient.RepositoryCallback<org.eclipse.jgit.revwalk.RevCommit>
Returns the RevCommit instance for a certain commit using the JGit. This must be called using gitClient.withRepository(...) method. See GitUtils.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RevCommitRepositoryCallback(String commit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jgit.revwalk.RevCommit
invoke(org.eclipse.jgit.lib.Repository repository, hudson.remoting.VirtualChannel virtualChannel)
-
-
-
Constructor Detail
-
RevCommitRepositoryCallback
public RevCommitRepositoryCallback(String commit)
-
-
Method Detail
-
invoke
public org.eclipse.jgit.revwalk.RevCommit invoke(org.eclipse.jgit.lib.Repository repository, hudson.remoting.VirtualChannel virtualChannel) throws IOException
- Specified by:
invoke
in interfaceorg.jenkinsci.plugins.gitclient.RepositoryCallback<org.eclipse.jgit.revwalk.RevCommit>
- Throws:
IOException
-
-