public class GitManager extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
GitManager() |
|
GitManager(FreekiConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAndCommit(String message,
Collection<File> files) |
void |
addAndCommit(String message,
File... files) |
void |
deleteAndCommit(String message,
Collection<File> deleted) |
void |
deleteAndCommit(String message,
File... deleted) |
String |
getCanonicalUrl() |
org.eclipse.jgit.revplot.PlotCommit<org.eclipse.jgit.revplot.PlotLane> |
getHeadCommit(File f) |
String |
getOriginUrl() |
void |
pullUpdates() |
void |
pushUpdates(String user,
String password) |
void |
setupGit() |
protected GitManager()
public GitManager(FreekiConfig config) throws IOException, org.eclipse.jgit.api.errors.InvalidRemoteException, org.eclipse.jgit.api.errors.TransportException, org.eclipse.jgit.api.errors.GitAPIException
IOExceptionorg.eclipse.jgit.api.errors.InvalidRemoteExceptionorg.eclipse.jgit.api.errors.TransportExceptionorg.eclipse.jgit.api.errors.GitAPIException@PostConstruct public void setupGit() throws IOException, org.eclipse.jgit.api.errors.InvalidRemoteException, org.eclipse.jgit.api.errors.TransportException, org.eclipse.jgit.api.errors.GitAPIException
IOExceptionorg.eclipse.jgit.api.errors.InvalidRemoteExceptionorg.eclipse.jgit.api.errors.TransportExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionpublic void addAndCommit(String message, File... files) throws IOException
IOExceptionpublic void addAndCommit(String message, Collection<File> files) throws IOException
IOExceptionpublic void deleteAndCommit(String message, File... deleted) throws IOException
IOExceptionpublic void deleteAndCommit(String message, Collection<File> deleted) throws IOException
IOExceptionpublic org.eclipse.jgit.revplot.PlotCommit<org.eclipse.jgit.revplot.PlotLane> getHeadCommit(File f) throws Exception
Exceptionpublic void pullUpdates()
throws IOException
IOExceptionpublic void pushUpdates(String user, String password) throws IOException
IOExceptionpublic String getOriginUrl()
public String getCanonicalUrl()
Copyright © 2013. All Rights Reserved.