Class GitOverlayDeltaProvider

java.lang.Object
com._1c.g5.v8.dt.internal.compare.datasource.GitOverlayDeltaProvider
All Implemented Interfaces:
IOverlayDeltaProvider

public class GitOverlayDeltaProvider extends Object implements IOverlayDeltaProvider
Delta provider for Git data sources
  • Constructor Details

    • GitOverlayDeltaProvider

      public GitOverlayDeltaProvider(Path repositoryPath, String revision, String baseRevision, Path projectPath, boolean libraryBasedProject, IProjectSourceProvider sourceProvider, IProjectSourceProvider baseSourceProvider)
      Constructs a provider.
      Parameters:
      repositoryPath - the Git repository directory path, cannot be null
      revision - the target commit reference or the index identifier for the overlay, may be null to traverse the work tree
      baseRevision - the base commit reference to build overlay on, may be null to traverse the work tree
      projectPath - the path to the project within the work tree of the repository, cannot be null
      libraryBasedProject - true if the source project is library based, false otherwise
      sourceProvider - the project source provider, cannot be null
      baseSourceProvider - the base data source project source provider, cannot be null
  • Method Details

    • stop

      public void stop()
      Description copied from interface: IOverlayDeltaProvider
      Stops the overlay delta provider in the flow of the comparison session closure. Should be failure-proof to not hinder sequential stops of other sources.
      Specified by:
      stop in interface IOverlayDeltaProvider
    • getOverlayDelta

      public ImportRequest getOverlayDelta(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
      Description copied from interface: IOverlayDeltaProvider
      Gets the delta ready for the import into the overlay data source
      Specified by:
      getOverlayDelta in interface IOverlayDeltaProvider
      Parameters:
      progressMonitor - The progress monitor to monitor the progress. May not be null
      Returns:
      The import request. May not be null