public interface IGitAPI
| Modifier and Type | Method and Description |
|---|---|
void |
add(String filePattern) |
void |
branch(String name) |
void |
changelog(String revFrom,
String revTo,
OutputStream fos) |
void |
checkout(String commitish)
Short for
checkoutBranch(null, commitish) |
void |
checkoutBranch(String branch,
String commitish)
Checks out the specified commit/ref into the workspace.
|
void |
clean() |
void |
clone_cgit(org.eclipse.jgit.transport.RemoteConfig source) |
void |
clone(org.eclipse.jgit.transport.RemoteConfig source) |
void |
close()
Close git repository and clean up file handles, etc.
|
void |
commit(File f) |
void |
commit(String message)
Performs commit into repository with given message.
|
void |
deleteBranch(String name) |
void |
deleteTag(String tagName) |
String |
describe(String commitIsh) |
void |
fetch() |
void |
fetch(org.eclipse.jgit.transport.RemoteConfig remoteRepository) |
void |
fetch(String repository,
String refspec) |
void |
fixSubmoduleUrls(String remote,
hudson.model.TaskListener listener) |
String |
getAllLogEntries(String branch) |
List<Branch> |
getBranches() |
List<Branch> |
getBranchesContaining(String revspec) |
String |
getDefaultRemote(String _default_) |
hudson.EnvVars |
getEnvironment() |
String |
getGitExe() |
String |
getHeadRev(String remoteRepoUrl,
String branch) |
List<Branch> |
getRemoteBranches() |
String |
getRemoteUrl(String name) |
String |
getRemoteUrl(String name,
String GIT_DIR) |
List<IndexEntry> |
getSubmodules(String treeIsh) |
String |
getSubmoduleUrl(String name) |
Set<String> |
getTagNames(String tagPattern) |
List<Tag> |
getTagsOnCommit(String revName) |
boolean |
hasGitModules() |
boolean |
hasGitModules(String treeIsh) |
boolean |
hasGitRepo()
Checks whether .git directory exists
|
void |
init()
Inits git repository.
|
boolean |
isBareRepository() |
boolean |
isBareRepository(String GIT_DIR) |
boolean |
isCommitInRepo(String sha1)
Checks whether commit presents in repository.
|
List<IndexEntry> |
lsTree(String treeIsh) |
void |
merge(String revSpec) |
org.eclipse.jgit.lib.ObjectId |
mergeBase(org.eclipse.jgit.lib.ObjectId sha1,
org.eclipse.jgit.lib.ObjectId sha12) |
void |
prune(org.eclipse.jgit.transport.RemoteConfig repository) |
void |
push(org.eclipse.jgit.transport.RemoteConfig repository,
String revspec) |
List<org.eclipse.jgit.lib.ObjectId> |
revListAll() |
List<org.eclipse.jgit.lib.ObjectId> |
revListBranch(String branchId) |
org.eclipse.jgit.lib.ObjectId |
revParse(String revName) |
void |
setRemoteUrl(String name,
String url) |
void |
setRemoteUrl(String name,
String url,
String GIT_DIR) |
void |
setSubmoduleUrl(String name,
String url) |
void |
setupSubmoduleUrls(Revision rev,
hudson.model.TaskListener listener) |
void |
setupSubmoduleUrls(String remote,
hudson.model.TaskListener listener) |
List<String> |
showRevision(Revision r) |
void |
submoduleClean(boolean recursive) |
void |
submoduleInit() |
void |
submoduleSync() |
void |
submoduleUpdate(boolean recursive) |
void |
tag(String tagName,
String comment) |
boolean |
tagExists(String tagName) |
String getGitExe()
hudson.EnvVars getEnvironment()
void close()
void init()
throws GitException
GitException - if repository exists.boolean hasGitRepo()
throws GitException
GitException - if any.boolean isCommitInRepo(String sha1)
sha1 - commitboolean hasGitModules()
throws GitException
GitExceptionboolean hasGitModules(String treeIsh) throws GitException
GitExceptionList<IndexEntry> getSubmodules(String treeIsh) throws GitException
GitExceptionString getRemoteUrl(String name) throws GitException
GitExceptionvoid setRemoteUrl(String name, String url) throws GitException
GitExceptionString getRemoteUrl(String name, String GIT_DIR) throws GitException
GitExceptionvoid setRemoteUrl(String name, String url, String GIT_DIR) throws GitException
GitExceptionString getDefaultRemote(String _default_) throws GitException
GitExceptionboolean isBareRepository()
throws GitException
GitExceptionboolean isBareRepository(String GIT_DIR) throws GitException
GitExceptionvoid submoduleInit()
throws GitException
GitExceptionvoid submoduleUpdate(boolean recursive)
throws GitException
GitExceptionvoid submoduleClean(boolean recursive)
throws GitException
GitExceptionvoid submoduleSync()
throws GitException
GitExceptionString getSubmoduleUrl(String name) throws GitException
GitExceptionvoid setSubmoduleUrl(String name, String url) throws GitException
GitExceptionvoid fixSubmoduleUrls(String remote, hudson.model.TaskListener listener) throws GitException
GitExceptionvoid setupSubmoduleUrls(Revision rev, hudson.model.TaskListener listener) throws GitException
GitExceptionvoid setupSubmoduleUrls(String remote, hudson.model.TaskListener listener) throws GitException
GitExceptionvoid fetch(String repository, String refspec) throws GitException
GitExceptionvoid fetch(org.eclipse.jgit.transport.RemoteConfig remoteRepository)
void fetch()
throws GitException
GitExceptionvoid push(org.eclipse.jgit.transport.RemoteConfig repository,
String revspec)
throws GitException
GitExceptionvoid merge(String revSpec) throws GitException
GitExceptionvoid clone_cgit(org.eclipse.jgit.transport.RemoteConfig source)
throws GitException
GitExceptionvoid clone(org.eclipse.jgit.transport.RemoteConfig source)
throws GitException
GitExceptionvoid clean()
throws GitException
GitExceptionvoid prune(org.eclipse.jgit.transport.RemoteConfig repository)
throws GitException
GitExceptionorg.eclipse.jgit.lib.ObjectId revParse(String revName) throws GitException
GitExceptionList<Branch> getBranches() throws GitException
GitExceptionList<Branch> getRemoteBranches() throws GitException, IOException
GitExceptionIOExceptionList<Branch> getBranchesContaining(String revspec) throws GitException
GitExceptionList<IndexEntry> lsTree(String treeIsh) throws GitException
GitExceptionList<org.eclipse.jgit.lib.ObjectId> revListBranch(String branchId) throws GitException
GitExceptionList<org.eclipse.jgit.lib.ObjectId> revListAll() throws GitException
GitExceptionString describe(String commitIsh) throws GitException
GitExceptionList<Tag> getTagsOnCommit(String revName) throws GitException, IOException
GitExceptionIOExceptionvoid tag(String tagName, String comment) throws GitException
GitExceptionboolean tagExists(String tagName) throws GitException
GitExceptionvoid deleteTag(String tagName) throws GitException
GitExceptionSet<String> getTagNames(String tagPattern) throws GitException
GitExceptionvoid changelog(String revFrom, String revTo, OutputStream fos) throws GitException
GitExceptionvoid checkout(String commitish) throws GitException
checkoutBranch(null, commitish)commitish - commitish value.GitException - if any.void checkoutBranch(String branch, String commitish) throws GitException
branch - If non-null, move/create the branch in this name at the specified commit-ish and check out that branch.commitish - commitish value.GitException - if any.void add(String filePattern) throws GitException
GitExceptionvoid branch(String name) throws GitException
GitExceptionvoid deleteBranch(String name) throws GitException
GitExceptionvoid commit(File f) throws GitException
f - file with commit message.GitException - if any.void commit(String message) throws GitException
message - commit message.GitException - if any.org.eclipse.jgit.lib.ObjectId mergeBase(org.eclipse.jgit.lib.ObjectId sha1,
org.eclipse.jgit.lib.ObjectId sha12)
List<String> showRevision(Revision r) throws GitException
GitExceptionString getHeadRev(String remoteRepoUrl, String branch) throws GitException
GitExceptionCopyright © 2004-2015 Hudson. All Rights Reserved.