Provides functions to access and operate on git repositories through JGIT.
| Method | Description |
|---|---|
| add() | Get repository status. |
| clone() | Clone a git repository. |
| commit() | Commit to a repository. |
| getRepositoryConfig() | Read a repository configuration entry. |
| getStatus() | Get repository status. |
| initRepository() | Initialize a fresh repository. |
| openRepository() | Open a local repository. |
| pull() | Pull a repository. |
| push() | Push a repository. |
| setRepositoryConfig() | Set a repository configuration entry. |
org.eclipse.jgit.dircache.DirCache add(Object repository, String filepattern) throws IOException, org.eclipse.jgit.api.errors.NoFilepatternException, org.eclipse.jgit.api.errors.GitAPIException
Get repository status.
/ as separator)add result
org.eclipse.jgit.api.Git clone(String remoteLocation, [Object localLocation], [String user], [String pass], [String branch]) throws org.eclipse.jgit.api.errors.InvalidRemoteException, org.eclipse.jgit.api.errors.TransportException, org.eclipse.jgit.api.errors.GitAPIException
Clone a git repository.
null for workspace folder)Optional: defaults to <rg.eclipse.ease.modules.ScriptParameter.nul>.null for all branches)Optional: defaults to <null>.GIT API instance
org.eclipse.jgit.revwalk.RevCommit commit(Object repository, String message, [String author], [boolean amend]) throws IOException, org.eclipse.jgit.api.errors.GitAPIException
Commit to a repository.
commit result
String getRepositoryConfig(org.eclipse.jgit.api.Git repository, String section, String subsection, String name)
Read a repository configuration entry.
nullconfiguration content
org.eclipse.jgit.api.Status getStatus(Object repository) throws IOException, org.eclipse.jgit.api.errors.GitAPIException
Get repository status.
repository status
org.eclipse.jgit.api.Git initRepository(Object location, [boolean bare]) throws org.eclipse.jgit.api.errors.GitAPIException
Initialize a fresh repository.
true for bare repositoriesOptional: defaults to <als>.GIT API instance
org.eclipse.jgit.api.Git openRepository(Object location) throws IOException
Open a local repository.
GIT API instance
org.eclipse.jgit.api.PullResult pull(Object repository) throws IOException, org.eclipse.jgit.api.errors.GitAPIException
Pull a repository.
pull result
Iterable<org.eclipse.jgit.transport.PushResult> push(Object repository) throws IOException, org.eclipse.jgit.api.errors.GitAPIException
Push a repository.
push result
void setRepositoryConfig(org.eclipse.jgit.api.Git repository, String section, String subsection, String name, String value)
Set a repository configuration entry.
null