public interface GitRepository
extends java.lang.AutoCloseable
| Modifier and Type | Interface and Description |
|---|---|
static class |
GitRepository.WalkMode |
| Modifier and Type | Method and Description |
|---|---|
default CloseableIterator<GitCommit> |
firstParentWalk() |
default CloseableIterator<GitCommit> |
firstParentWalk(GitCommit startCommit) |
GitBranch |
getBranch(java.lang.String name) |
java.util.Collection<? extends GitBranch> |
getBranches() |
GitBranch |
getCurrentBranch() |
GitCommit |
getHead() |
java.util.Collection<? extends GitTag> |
getTags() |
java.io.File |
getWorkingDir() |
default CloseableIterator<GitCommit> |
walk() |
default CloseableIterator<GitCommit> |
walk(GitCommit startCommit) |
CloseableIterator<GitCommit> |
walk(GitCommit startCommit,
GitRepository.WalkMode mode) |
default CloseableIterator<GitCommit> |
walk(GitRepository.WalkMode walkMode) |
java.io.File getWorkingDir()
@Nullable GitCommit getHead()
@Nullable GitBranch getCurrentBranch()
@Nullable GitBranch getBranch(java.lang.String name)
@Nonnull java.util.Collection<? extends GitBranch> getBranches()
@Nonnull java.util.Collection<? extends GitTag> getTags()
@Nonnull CloseableIterator<GitCommit> walk(GitCommit startCommit, GitRepository.WalkMode mode)
default CloseableIterator<GitCommit> walk(GitCommit startCommit)
default CloseableIterator<GitCommit> walk(GitRepository.WalkMode walkMode)
default CloseableIterator<GitCommit> walk()
default CloseableIterator<GitCommit> firstParentWalk(GitCommit startCommit)
default CloseableIterator<GitCommit> firstParentWalk()