public class GitVcsRepository extends VcsRepositorySupport
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.regex.Pattern |
SPLIT_PATH_PATTERN |
| Constructor and Description |
|---|
GitVcsRepository(VcsReference ref) |
| Modifier and Type | Method and Description |
|---|---|
VcsFullReference |
downloadToInternal(java.io.File targetDirectory) |
protected java.lang.String |
fullRevisionOf(org.eclipse.jgit.api.Git git) |
boolean |
isWorking() |
protected boolean |
match(org.eclipse.jgit.lib.Ref ref) |
protected boolean |
match(java.lang.String ref) |
protected void |
removeGitDirectoryIfNeeded(java.io.File targetDirectory,
org.eclipse.jgit.api.Git git) |
protected org.eclipse.jgit.lib.Ref |
resolveRemoteRef() |
protected org.eclipse.jgit.lib.Ref |
selectFirstMatching(java.lang.Iterable<org.eclipse.jgit.lib.Ref> refs) |
emptyDirectoryIfExists, forceUpdate, getReference, infoFileFor, isUpdateRequired, isUpdateRequired, resolveTargetDirectoryFor, saveInfoFile, saveInfoFile, tryReadInfoFor, updateIfRequiredpublic GitVcsRepository(@Nonnull
VcsReference ref)
public boolean isWorking()
throws VcsException
VcsException@Nonnull public VcsFullReference downloadToInternal(@Nonnull java.io.File targetDirectory) throws VcsException
downloadToInternal in class VcsRepositorySupportVcsExceptionprotected void removeGitDirectoryIfNeeded(@Nonnull
java.io.File targetDirectory,
@Nonnull
org.eclipse.jgit.api.Git git)
throws VcsException
VcsException@Nonnull
protected java.lang.String fullRevisionOf(@Nonnull
org.eclipse.jgit.api.Git git)
throws VcsException
VcsException@Nullable
protected org.eclipse.jgit.lib.Ref resolveRemoteRef()
throws VcsException,
org.eclipse.jgit.api.errors.GitAPIException
VcsExceptionorg.eclipse.jgit.api.errors.GitAPIException@Nullable
protected org.eclipse.jgit.lib.Ref selectFirstMatching(@Nullable
java.lang.Iterable<org.eclipse.jgit.lib.Ref> refs)
throws VcsException
VcsExceptionprotected boolean match(@Nullable
org.eclipse.jgit.lib.Ref ref)
throws VcsException
VcsExceptionprotected boolean match(@Nullable
java.lang.String ref)
throws VcsException
VcsException