Class GitOverlayDeltaProvider
java.lang.Object
com._1c.g5.v8.dt.internal.compare.datasource.GitOverlayDeltaProvider
- All Implemented Interfaces:
IOverlayDeltaProvider
Delta provider for Git data sources
-
Constructor Summary
ConstructorsConstructorDescriptionGitOverlayDeltaProvider
(Path repositoryPath, String revision, String baseRevision, Path projectPath, boolean libraryBasedProject, IProjectSourceProvider sourceProvider, IProjectSourceProvider baseSourceProvider) Constructs a provider. -
Method Summary
Modifier and TypeMethodDescriptiongetOverlayDelta
(org.eclipse.core.runtime.IProgressMonitor progressMonitor) Gets the delta ready for the import into the overlay data sourcevoid
stop()
Stops the overlay delta provider in the flow of the comparison session closure.
-
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 benull
revision
- the target commit reference or the index identifier for the overlay, may benull
to traverse the work treebaseRevision
- the base commit reference to build overlay on, may benull
to traverse the work treeprojectPath
- the path to the project within the work tree of the repository, cannot benull
libraryBasedProject
-true
if the source project is library based,false
otherwisesourceProvider
- the project source provider, cannot benull
baseSourceProvider
- the base data source project source provider, cannot benull
-
-
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 interfaceIOverlayDeltaProvider
-
getOverlayDelta
Description copied from interface:IOverlayDeltaProvider
Gets the delta ready for the import into the overlay data source- Specified by:
getOverlayDelta
in interfaceIOverlayDeltaProvider
- Parameters:
progressMonitor
- The progress monitor to monitor the progress. May not benull
- Returns:
- The import request. May not be
null
-