Class 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 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 interface org.jenkinsci.plugins.gitclient.RepositoryCallback<org.eclipse.jgit.revwalk.RevCommit>
        Throws:
        IOException