Class GitRepo
java.lang.Object
se.bjurr.gitchangelog.internal.git.GitRepo
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Optional<RevisionBoundary<org.eclipse.jgit.lib.ObjectId>>findObjectId(String revision, InclusivenessStrategy inclusivenessStrategy) Optional<org.eclipse.jgit.lib.ObjectId>Optional<org.eclipse.jgit.lib.ObjectId>org.eclipse.jgit.lib.ObjectIdgetGitRepoData(RevisionBoundary<org.eclipse.jgit.lib.ObjectId> from, RevisionBoundary<org.eclipse.jgit.lib.ObjectId> to, String untaggedName, Optional<String> ignoreTagsIfNameMatches) org.eclipse.jgit.lib.ObjectIdgetTags(RevisionBoundary<org.eclipse.jgit.lib.ObjectId> fromObjectId, RevisionBoundary<org.eclipse.jgit.lib.ObjectId> toObjectId) voidsetPathFilters(List<String> pathFilters) toString()
-
Constructor Details
-
GitRepo
public GitRepo() -
GitRepo
- Throws:
GitChangelogRepositoryException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getCommit
public org.eclipse.jgit.lib.ObjectId getCommit(String fromCommit) throws GitChangelogRepositoryException - Throws:
GitChangelogRepositoryException
-
findObjectId
public Optional<RevisionBoundary<org.eclipse.jgit.lib.ObjectId>> findObjectId(String revision, InclusivenessStrategy inclusivenessStrategy) throws GitChangelogRepositoryException - Throws:
GitChangelogRepositoryException
-
getGitRepoData
public GitRepoData getGitRepoData(RevisionBoundary<org.eclipse.jgit.lib.ObjectId> from, RevisionBoundary<org.eclipse.jgit.lib.ObjectId> to, String untaggedName, Optional<String> ignoreTagsIfNameMatches) throws GitChangelogRepositoryException - Parameters:
from- From, but not including, this commit. Except for theGitChangelogApiConstants.ZERO_COMMIT, it is included.to- To and including this commit.- Throws:
GitChangelogRepositoryException
-
getRef
- Throws:
GitChangelogRepositoryException
-
findRef
public Optional<org.eclipse.jgit.lib.ObjectId> findRef(String findRef, boolean exact) throws IOException - Throws:
IOException
-
findRef
-
toString
-
setPathFilters
-
getTags
public List<String> getTags(RevisionBoundary<org.eclipse.jgit.lib.ObjectId> fromObjectId, RevisionBoundary<org.eclipse.jgit.lib.ObjectId> toObjectId) throws Exception - Throws:
Exception
-