Interface ICheckoutCallback


  • public interface ICheckoutCallback
    Checkout callback is called to perform checkout in the middle of an operation.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean performCheckout​(org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.lib.Ref target, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
      Performs checkout to the given ref.
    • Method Detail

      • performCheckout

        boolean performCheckout​(org.eclipse.jgit.lib.Repository repo,
                                org.eclipse.jgit.lib.Ref target,
                                org.eclipse.core.runtime.IProgressMonitor progressMonitor)
                         throws org.eclipse.core.runtime.CoreException
        Performs checkout to the given ref.
        Parameters:
        repo - the repository, never null
        target - the target ref, never null
        progressMonitor - the progress monitor, never null
        Returns:
        true if the checkout was successfully performed, false otherwise
        Throws:
        org.eclipse.core.runtime.CoreException - if an error occurs