public class GitManipulator
extends java.lang.Object
Constructor and Description |
---|
GitManipulator(org.eclipse.core.resources.IProject proj) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
commit(org.eclipse.core.resources.IFile file,
java.lang.String commitMessage,
org.eclipse.core.runtime.IProgressMonitor monitor) |
static GitManipulator |
create(org.eclipse.core.resources.IProject proj) |
void |
excludeDotReqCSVDir() |
java.lang.String |
getPath(org.eclipse.core.resources.IResource r) |
org.eclipse.jgit.lib.Repository |
getRepo() |
void |
init(org.eclipse.core.resources.IProject proj) |
java.util.List<VersionInfo> |
listRevisions(org.eclipse.core.resources.IResource r) |
void |
pull() |
void |
push(java.lang.String message) |
void |
reset() |
void |
setCurrentRevision(java.lang.String rev) |
void |
tag(java.lang.String tag) |
public GitManipulator(org.eclipse.core.resources.IProject proj) throws java.lang.Exception
java.lang.Exception
public static GitManipulator create(org.eclipse.core.resources.IProject proj) throws java.lang.Exception
java.lang.Exception
public void init(org.eclipse.core.resources.IProject proj) throws java.lang.Exception
java.lang.Exception
public java.lang.String getPath(org.eclipse.core.resources.IResource r)
public java.util.List<VersionInfo> listRevisions(org.eclipse.core.resources.IResource r) throws java.lang.Exception
java.lang.Exception
public void setCurrentRevision(java.lang.String rev) throws java.lang.Exception
java.lang.Exception
public void commit(org.eclipse.core.resources.IFile file, java.lang.String commitMessage, org.eclipse.core.runtime.IProgressMonitor monitor) throws java.lang.Exception
java.lang.Exception
public void excludeDotReqCSVDir() throws java.lang.Exception
java.lang.Exception
public void reset() throws org.eclipse.jgit.api.errors.CheckoutConflictException, org.eclipse.jgit.api.errors.GitAPIException, java.io.IOException
org.eclipse.jgit.api.errors.CheckoutConflictException
org.eclipse.jgit.api.errors.GitAPIException
java.io.IOException
public void tag(java.lang.String tag) throws org.eclipse.jgit.api.errors.ConcurrentRefUpdateException, org.eclipse.jgit.api.errors.InvalidTagNameException, org.eclipse.jgit.api.errors.NoHeadException, org.eclipse.jgit.api.errors.GitAPIException
org.eclipse.jgit.api.errors.ConcurrentRefUpdateException
org.eclipse.jgit.api.errors.InvalidTagNameException
org.eclipse.jgit.api.errors.NoHeadException
org.eclipse.jgit.api.errors.GitAPIException
public void push(java.lang.String message) throws org.eclipse.jgit.api.errors.CheckoutConflictException, org.eclipse.jgit.api.errors.GitAPIException
org.eclipse.jgit.api.errors.CheckoutConflictException
org.eclipse.jgit.api.errors.GitAPIException
public void pull() throws org.eclipse.jgit.api.errors.CheckoutConflictException, org.eclipse.jgit.api.errors.GitAPIException
org.eclipse.jgit.api.errors.CheckoutConflictException
org.eclipse.jgit.api.errors.GitAPIException
public void close()
public org.eclipse.jgit.lib.Repository getRepo()