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
Constructors Constructor Description GitComparisonDataSourceDescriptor(Path repositoryPath, String revision, Path projectPath)
Creates a new instance with the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getProjectName()
Returns the project name for this data source descriptor.Path
getProjectPath()
Returns the project path in Git repository.Path
getRepositoryPath()
Returns the Git repository directory path.String
getRevision()
Returns the Git commit reference or the index identifier.int
hashCode()
-
-
-
Constructor Detail
-
GitComparisonDataSourceDescriptor
public GitComparisonDataSourceDescriptor(Path repositoryPath, String revision, Path projectPath)
Creates a new instance with the given parameters.- Parameters:
repositoryPath
- the Git repository directory path, cannot benull
revision
- the Git commit reference orGitCompareUtils.INDEX
to use index, cannot benull
projectPath
- the project path in Git repository, cannot benull
-
-
Method Detail
-
getProjectName
public String getProjectName()
Description copied from interface:IComparisonDataSourceDescriptor
Returns the project name for this data source descriptor.- Specified by:
getProjectName
in interfaceIComparisonDataSourceDescriptor
- Returns:
- the project name, never
null
-
getRepositoryPath
public Path getRepositoryPath()
Returns the Git repository directory path.- Returns:
- the Git repository directory path, never
null
-
getRevision
public String getRevision()
Returns the Git commit reference or the index identifier.- Returns:
- the Git commit reference, never
null
-
getProjectPath
public Path getProjectPath()
Returns the project path in Git repository.- Returns:
- the project path in Git repository, never
null
-
-