Class GitContentRepositoryImpl
Object
GitContentRepositoryImpl
- All Implemented Interfaces:
GitContentRepository
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloneRepo(GitContentConfig config, GitRepoConfig repo) getCurrentCommitAuthor(GitRepoConfig repo) Returns the author name of the current HEAD commit, or null if unavailable.getCurrentCommitHash(GitRepoConfig repo) getWorkingTreePath(GitRepoConfig repo) booleanhasNewCommits(GitContentConfig config, GitRepoConfig repo, String lastKnownSha) voidpull(GitContentConfig config, GitRepoConfig repo)
-
Constructor Details
-
GitContentRepositoryImpl
public GitContentRepositoryImpl()
-
-
Method Details
-
cloneRepo
- Specified by:
cloneRepoin interfaceGitContentRepository- Throws:
IOException
-
pull
- Specified by:
pullin interfaceGitContentRepository- Throws:
IOException
-
getWorkingTreePath
- Specified by:
getWorkingTreePathin interfaceGitContentRepository
-
getCurrentCommitHash
- Specified by:
getCurrentCommitHashin interfaceGitContentRepository- Throws:
IOException
-
getCurrentCommitAuthor
Description copied from interface:GitContentRepositoryReturns the author name of the current HEAD commit, or null if unavailable.- Specified by:
getCurrentCommitAuthorin interfaceGitContentRepository- Throws:
IOException
-
hasNewCommits
public boolean hasNewCommits(GitContentConfig config, GitRepoConfig repo, String lastKnownSha) throws IOException - Specified by:
hasNewCommitsin interfaceGitContentRepository- Throws:
IOException
-