Class GitComparisonDataSourceDescriptor

    • Constructor Detail

      • GitComparisonDataSourceDescriptor

        public GitComparisonDataSourceDescriptor​(org.eclipse.jgit.lib.Repository repo,
                                                 org.eclipse.jgit.revwalk.RevCommit revCommit,
                                                 boolean useIndex,
                                                 Path projectPath,
                                                 boolean closeRepositoryOnWorkFinish)
        Creates a new instance with the given parameters.
        Parameters:
        repo - the Git repository, can not be null
        revCommit - the Git commit reference, will not be used if useIndex is true, may be null
        useIndex - true if it needed to use the index data as the source of the comparison
        projectPath - the project path in Git repository, can not be null
        closeRepositoryOnWorkFinish - tells whether the Git repository should be closed after work with it was finished
    • Method Detail

      • getRepository

        public org.eclipse.jgit.lib.Repository getRepository()
        Returns the Git repository, can not be null
        Returns:
        the Git repository, never null
      • getRevCommit

        public org.eclipse.jgit.revwalk.RevCommit getRevCommit()
        Returns the Git commit reference.
        Returns:
        the Git commit reference, may be null
      • useIndex

        public boolean useIndex()
        Checks whether need to use the index data as the source of the comparison.
        Returns:
        true if it needed to use the index data as the source of the comparison
      • getProjectPath

        public Path getProjectPath()
        Returns the project path in Git repository.
        Returns:
        the project path in Git repository, never null
      • closeRepositoryOnWorkFinish

        public boolean closeRepositoryOnWorkFinish()
        Tells whether the Git repository should be closed after work with it was finished.
        Returns:
        true if the Git repository should be closed after work with it was finished, false otherwise
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object