Interface GitContentRepository
- All Known Implementing Classes:
GitContentRepositoryImpl
public interface GitContentRepository
Manages local clones of Git content repositories.
Supports multiple repos — each method receives the global config and a repo entry.
-
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)
-
Method Details
-
cloneRepo
- Throws:
IOException
-
pull
- Throws:
IOException
-
getWorkingTreePath
-
getCurrentCommitHash
- Throws:
IOException
-
getCurrentCommitAuthor
Returns the author name of the current HEAD commit, or null if unavailable.- Throws:
IOException
-
hasNewCommits
boolean hasNewCommits(GitContentConfig config, GitRepoConfig repo, String lastKnownSha) throws IOException - Throws:
IOException
-