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. |
getStatus() | Get repository status. |
initRepository() | Initialize a fresh repository. |
openRepository() | Open a local repository. |
pull() | Pull a repository. |
push() | Push a repository. |
org.eclipse.jgit.dircache.DirCache add(java.lang.Object repository, java.lang.String filepattern)
Get repository status.
add result
org.eclipse.jgit.api.Git clone(java.lang.String remoteLocation, java.lang.Object localLocation, [java.lang.String user], [java.lang.String pass], [java.lang.String branch])
Clone a git repository.
null
for all branches)Optional: defaults to <null>.GIT API instance
org.eclipse.jgit.revwalk.RevCommit commit(java.lang.Object repository, java.lang.String message, [java.lang.String author], [boolean amend])
Commit to a repository.
commit result
org.eclipse.jgit.api.Status getStatus(java.lang.Object repository)
Get repository status.
repository status
org.eclipse.jgit.api.Git initRepository(java.lang.Object location, [boolean bare])
Initialize a fresh repository.
true
for bare repositoriesOptional: defaults to <false>.GIT API instance
org.eclipse.jgit.api.Git openRepository(java.lang.Object location)
Open a local repository.
GIT API instance
org.eclipse.jgit.api.PullResult pull(java.lang.Object repository)
Pull a repository.
pull result
java.lang.Iterable<T> push(java.lang.Object repository)
Push a repository.
push result