public interface GitOperationHelper
| Modifier and Type | Method and Description |
|---|---|
String |
checkout(File cacheDirectory,
File sourceDirectory,
String targetRevision,
String previousRevision) |
boolean |
checkRevisionExistsInCacheRepository(File repositoryDirectory,
String targetRevision) |
String |
commit(File sourceDirectory,
String message,
String comitterName,
String comitterEmail) |
BuildRepositoryChanges |
extractCommits(File cacheDirectory,
String lastVcsRevisionKey,
String targetRevision) |
void |
fetch(File sourceDirectory,
String targetRevision,
boolean useShallow) |
String |
getBranchForSha(File sourceDirectory,
String revision,
String configuredBranch) |
CommitContext |
getCommit(File directory,
String targetRevision)
Gets the commit for the revision, given a working directory.
|
String |
getCurrentRevision(File sourceDirectory) |
List<VcsBranch> |
getOpenBranches(GitRepositoryAccessData repositoryData,
File workingDir) |
String |
getRevisionIfExists(File sourceDirectory,
String revision) |
boolean |
merge(File workspaceDir,
String targetRevision,
String committerName,
String committerEmail) |
String |
obtainLatestRevision() |
void |
pushRevision(File sourceDirectory,
String revision) |
void pushRevision(@NotNull
File sourceDirectory,
@NotNull
String revision)
throws RepositoryException
RepositoryExceptionString commit(@NotNull File sourceDirectory, @NotNull String message, @NotNull String comitterName, @NotNull String comitterEmail) throws RepositoryException
RepositoryException@NotNull String checkout(@Nullable File cacheDirectory, @NotNull File sourceDirectory, @NotNull String targetRevision, @Nullable String previousRevision) throws RepositoryException
RepositoryExceptionvoid fetch(@NotNull
File sourceDirectory,
@NotNull
String targetRevision,
boolean useShallow)
throws RepositoryException
RepositoryException@NotNull String getCurrentRevision(@NotNull File sourceDirectory) throws RepositoryException
RepositoryException@Nullable String getRevisionIfExists(@NotNull File sourceDirectory, @NotNull String revision)
@NotNull String obtainLatestRevision() throws RepositoryException
RepositoryException@NotNull List<VcsBranch> getOpenBranches(@NotNull GitRepositoryAccessData repositoryData, File workingDir) throws RepositoryException
RepositoryExceptionboolean checkRevisionExistsInCacheRepository(@NotNull
File repositoryDirectory,
@NotNull
String targetRevision)
throws IOException,
RepositoryException
IOExceptionRepositoryException@NotNull CommitContext getCommit(File directory, String targetRevision) throws RepositoryException
RepositoryException - if the revision can't be foundboolean merge(@NotNull
File workspaceDir,
@NotNull
String targetRevision,
@NotNull
String committerName,
@NotNull
String committerEmail)
throws RepositoryException
RepositoryExceptionBuildRepositoryChanges extractCommits(File cacheDirectory, String lastVcsRevisionKey, String targetRevision) throws RepositoryException
RepositoryException@NotNull String getBranchForSha(@NotNull File sourceDirectory, String revision, String configuredBranch) throws RepositoryException
RepositoryExceptionCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.