Interface IGitIntegrationManager

All Known Implementing Classes:
SnapshotGitIntegrationManager

public interface IGitIntegrationManager
Git integration manager controls integration of metadata snapshots with Git VCS.
  • Method Summary

    Modifier and Type
    Method
    Description
    beginManagedCheckout(org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.lib.Ref targetRef, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
    Starts checkout with snapshot operation support.
    void
    Completes managed checkout with snapshot operation support.
    void
    Changes active snapshot integration strategy.
    void
    Informs the manager, that settings of active integration strategy have changed.
  • Method Details

    • setIntegrationStrategy

      void setIntegrationStrategy(IGitIntegrationStrategy strategy)
      Changes active snapshot integration strategy.
      Parameters:
      strategy - the new integration strategy, cannot be null
    • beginManagedCheckout

      Object beginManagedCheckout(org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.lib.Ref targetRef, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
      Starts checkout with snapshot operation support.
      Parameters:
      repo - the repository, which is going to be checked out, cannot be null
      targetRef - the target ref, cannot be null
      progressMonitor - the progress monitor, may be null
      Returns:
      the checkout handle, which must eventually be passed to endManagedCheckout(Object), or null if no action needed
    • endManagedCheckout

      void endManagedCheckout(Object handle)
      Completes managed checkout with snapshot operation support.
      Parameters:
      handle - the checkout handle, obtained from beginManagedCheckout(Repository, Ref, IProgressMonitor), cannot be null
    • strategySettingsChanged

      void strategySettingsChanged()
      Informs the manager, that settings of active integration strategy have changed.