Class GitComparisonDataSourceDescriptor
java.lang.Object
com._1c.g5.v8.dt.compare.datasource.GitComparisonDataSourceDescriptor
- All Implemented Interfaces:
IComparisonDataSourceDescriptor
public class GitComparisonDataSourceDescriptor
extends Object
implements IComparisonDataSourceDescriptor
The descriptor represented by a Git revision.
-
Constructor Summary
ConstructorsConstructorDescriptionGitComparisonDataSourceDescriptor(Path repositoryPath, String revision, Path projectPath) Creates a new instance with the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the project name for this data source descriptor.Returns the project path in Git repository.Returns the Git repository directory path.Returns the Git commit reference or the index identifier.inthashCode()
-
Constructor Details
-
GitComparisonDataSourceDescriptor
Creates a new instance with the given parameters.- 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
-
getProjectName
Description copied from interface:IComparisonDataSourceDescriptorReturns the project name for this data source descriptor.- Specified by:
getProjectNamein interfaceIComparisonDataSourceDescriptor- Returns:
- the project name, never
null
-
getRepositoryPath
Returns the Git repository directory path.- Returns:
- the Git repository directory path, never
null
-
getRevision
Returns the Git commit reference or the index identifier.- Returns:
- the Git commit reference, never
null
-
getProjectPath
Returns the project path in Git repository.- Returns:
- the project path in Git repository, never
null
-
hashCode
public int hashCode() -
equals
-