Class GitProjectSourceProvider
java.lang.Object
com._1c.g5.v8.dt.internal.compare.datasource.AbstractProjectSourceProvider
com._1c.g5.v8.dt.internal.compare.datasource.GitProjectSourceProvider
- All Implemented Interfaces:
IProjectSourceProvider,IExtendedProjectSourceProvider
IExtendedProjectSourceProvider for Git sources-
Constructor Summary
ConstructorsConstructorDescriptionGitProjectSourceProvider(Path repositoryPath, String revision, Path projectPath) Constructs the source provider. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanfileExists(Path path) Checks whether a file for the specified path exists.getFileListRecursively(Path path) Returns the file list for given folder path and all its subfolders.getFileStream(Path path) Returns a file stream for the specified path.Gets the full import request.inthashCode()static voidSets the buffer shortage marker.voidstop()Stops the project source provider in the flow of the comparison session closure.toString()Methods inherited from class com._1c.g5.v8.dt.internal.compare.datasource.AbstractProjectSourceProvider
getProjectName, getProjectNature, getTargetRuntimeVersion
-
Constructor Details
-
GitProjectSourceProvider
Constructs the source provider.- Parameters:
repositoryPath- the Git repository directory path, cannot benullrevision- the Git commit reference orGitCompareUtils.INDEXto use index, cannot benullprojectPath- the project path in Git repository, cannot benull
-
-
Method Details
-
setBufferShortageMarker
public static void setBufferShortageMarker()Sets the buffer shortage marker. The marker is being set as the thread-local variable to overcome the limitation of jgit exception reporting during the buffer memory shortage -
fileExists
Description copied from interface:IProjectSourceProviderChecks whether a file for the specified path exists.- Parameters:
path- the specified path to check the existence for, cannot benull- Returns:
trueif the file exists,falseotherwise
-
getFullImportRequest
Description copied from interface:IExtendedProjectSourceProviderGets the full import request.- Returns:
- The definition of sources that should be imported during the full import request
-
getFileListRecursively
Description copied from interface:IProjectSourceProviderReturns the file list for given folder path and all its subfolders.- Parameters:
path- the relative folder path to get the file list for, can not benull- Returns:
- the list of relative file paths, never
null
-
getFileStream
Description copied from interface:IProjectSourceProviderReturns a file stream for the specified path.- Parameters:
path- the string with the path- Returns:
- the input stream
-
stop
public void stop()Description copied from interface:IProjectSourceProviderStops the project source provider in the flow of the comparison session closure. -
hashCode
public int hashCode() -
equals
-
toString
-