Class GitComparisonDataSourceDescriptor

    • 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 be null
        revision - the Git commit reference or GitCompareUtils.INDEX to use index, cannot be null
        projectPath - the project path in Git repository, cannot be null
    • Method Detail

      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object