public class GitVcsRepository extends VcsRepositorySupport
VcsRepository.ProgressMonitor, VcsRepository.Utils| 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 |
|---|---|
protected VcsFullReference |
downloadToInternal(java.nio.file.Path targetDirectory,
VcsRepository.ProgressMonitor progressMonitor) |
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.nio.file.Path 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) |
protected org.eclipse.jgit.lib.ProgressMonitor |
toGitProgressMonitor(VcsRepository.ProgressMonitor input) |
emptyDirectoryIfExists, forceUpdate, forceUpdate, getReference, infoFileFor, isUpdateRequired, isUpdateRequired, resolveTargetDirectoryFor, saveInfoFile, saveInfoFile, tryReadInfoFor, updateIfRequired, updateIfRequiredpublic GitVcsRepository(@Nonnull
VcsReference ref)
public boolean isWorking()
throws VcsException
VcsException@Nonnull protected VcsFullReference downloadToInternal(@Nonnull java.nio.file.Path targetDirectory, @Nullable VcsRepository.ProgressMonitor progressMonitor) throws VcsException
downloadToInternal in class VcsRepositorySupportVcsException@Nonnull
protected org.eclipse.jgit.lib.ProgressMonitor toGitProgressMonitor(@Nullable
VcsRepository.ProgressMonitor input)
protected void removeGitDirectoryIfNeeded(@Nonnull
java.nio.file.Path 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