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 sourcevoidstop()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 benullrevision- the target commit reference or the index identifier for the overlay, may benullto traverse the work treebaseRevision- the base commit reference to build overlay on, may benullto traverse the work treeprojectPath- the path to the project within the work tree of the repository, cannot benulllibraryBasedProject-trueif the source project is library based,falseotherwisesourceProvider- the project source provider, cannot benullbaseSourceProvider- the base data source project source provider, cannot benull
-
-
Method Details
-
stop
public void stop()Description copied from interface:IOverlayDeltaProviderStops 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:
stopin interfaceIOverlayDeltaProvider
-
getOverlayDelta
Description copied from interface:IOverlayDeltaProviderGets the delta ready for the import into the overlay data source- Specified by:
getOverlayDeltain interfaceIOverlayDeltaProvider- Parameters:
progressMonitor- The progress monitor to monitor the progress. May not benull- Returns:
- The import request. May not be
null
-