|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IGitAPI
| Field Summary |
|---|
| Fields inherited from interface org.jenkinsci.plugins.gitclient.GitClient |
|---|
quietRemoteBranches, verbose |
| Method Summary | |
|---|---|
void |
changelog(String revFrom,
String revTo,
OutputStream fos)
Deprecated. Adds the changelog entries for commits in the range revFrom..revTo. |
void |
checkoutBranch(String branch,
String commitish)
Deprecated. Regardless of the current state of the workspace (whether there is some dirty files, etc) and the state of the repository (whether the branch of the specified name exists or not), when this method exits the following conditions hold: The branch of the specified name branch exists and points to the specified ref HEAD points to branch. |
void |
clone(org.eclipse.jgit.transport.RemoteConfig source)
Deprecated. |
void |
clone(org.eclipse.jgit.transport.RemoteConfig rc,
boolean useShallowClone)
Deprecated. |
String |
describe(String commitIsh)
Deprecated. |
void |
fetch()
Deprecated. |
void |
fetch(org.eclipse.jgit.transport.RemoteConfig remoteRepository)
Deprecated. |
void |
fetch(String repository,
String refspec)
Deprecated. |
void |
fixSubmoduleUrls(String remote,
hudson.model.TaskListener listener)
Deprecated. |
String |
getAllLogEntries(String branch)
Deprecated. |
List<Branch> |
getBranchesContaining(String revspec)
Deprecated. |
String |
getDefaultRemote(String _default_)
Deprecated. |
String |
getRemoteUrl(String name,
String GIT_DIR)
Deprecated. |
String |
getSubmoduleUrl(String name)
Deprecated. |
List<Tag> |
getTagsOnCommit(String revName)
Deprecated. |
boolean |
hasGitModules(String treeIsh)
Deprecated. |
boolean |
isBareRepository()
Deprecated. |
boolean |
isBareRepository(String GIT_DIR)
Deprecated. |
List<IndexEntry> |
lsTree(String treeIsh)
Deprecated. |
void |
merge(String revSpec)
Deprecated. |
org.eclipse.jgit.lib.ObjectId |
mergeBase(org.eclipse.jgit.lib.ObjectId sha1,
org.eclipse.jgit.lib.ObjectId sha12)
Deprecated. |
void |
push(org.eclipse.jgit.transport.RemoteConfig repository,
String revspec)
Deprecated. |
void |
reset()
Deprecated. |
void |
reset(boolean hard)
Deprecated. |
List<org.eclipse.jgit.lib.ObjectId> |
revListBranch(String branchId)
Deprecated. |
void |
setRemoteUrl(String name,
String url,
String GIT_DIR)
Deprecated. |
void |
setSubmoduleUrl(String name,
String url)
Deprecated. |
void |
setupSubmoduleUrls(String remote,
hudson.model.TaskListener listener)
Deprecated. |
List<String> |
showRevision(Revision r)
Deprecated. |
void |
submoduleInit()
Deprecated. |
void |
submoduleSync()
Deprecated. |
| Methods inherited from interface org.jenkinsci.plugins.gitclient.GitClient |
|---|
add, addNote, addSubmodule, appendNote, branch, checkout, checkout, clean, clone, commit, commit, deleteBranch, deleteTag, fetch, getBranches, getHeadRev, getRemoteBranches, getRemoteUrl, getRepository, getSubmodules, getTagMessage, getTagNames, hasGitModules, hasGitRepo, init, isCommitInRepo, merge, prune, push, revList, revListAll, revParse, setRemoteUrl, setupSubmoduleUrls, showRevision, showRevision, subGit, submoduleClean, submoduleUpdate, tag, tagExists |
| Method Detail |
|---|
boolean hasGitModules(String treeIsh)
throws GitException
GitException
String getRemoteUrl(String name,
String GIT_DIR)
throws GitException
GitException
void setRemoteUrl(String name,
String url,
String GIT_DIR)
throws GitException
GitException
String getDefaultRemote(String _default_)
throws GitException
GitException
boolean isBareRepository()
throws GitException
GitException
boolean isBareRepository(String GIT_DIR)
throws GitException
GitException
void submoduleInit()
throws GitException
GitException
void submoduleSync()
throws GitException
GitException
String getSubmoduleUrl(String name)
throws GitException
GitException
void setSubmoduleUrl(String name,
String url)
throws GitException
GitException
void fixSubmoduleUrls(String remote,
hudson.model.TaskListener listener)
throws GitException
GitException
void setupSubmoduleUrls(String remote,
hudson.model.TaskListener listener)
throws GitException
GitException
void fetch(String repository,
String refspec)
throws GitException
GitExceptionvoid fetch(org.eclipse.jgit.transport.RemoteConfig remoteRepository)
void fetch()
throws GitException
GitException
void reset(boolean hard)
throws GitException
GitException
void reset()
throws GitException
GitException
void push(org.eclipse.jgit.transport.RemoteConfig repository,
String revspec)
throws GitException
GitException
void merge(String revSpec)
throws GitException
GitException
void clone(org.eclipse.jgit.transport.RemoteConfig source)
throws GitException
GitException
void clone(org.eclipse.jgit.transport.RemoteConfig rc,
boolean useShallowClone)
throws GitException
GitException
List<Branch> getBranchesContaining(String revspec)
throws GitException
GitException
List<IndexEntry> lsTree(String treeIsh)
throws GitException
GitException
List<org.eclipse.jgit.lib.ObjectId> revListBranch(String branchId)
throws GitException
GitException
String describe(String commitIsh)
throws GitException
GitException
List<Tag> getTagsOnCommit(String revName)
throws GitException,
IOException
GitException
IOException
void changelog(String revFrom,
String revTo,
OutputStream fos)
throws GitException
GitClient
changelog in interface GitClientGitException
void checkoutBranch(String branch,
String commitish)
throws GitException
GitClient
This method is preferred over the GitClient.checkout(String, String) family of methods, as
this method is affected far less by the current state of the repository. The checkout
methods, in their attempt to emulate the "git checkout" command line behaviour, have too many
side effects. In Jenkins, where you care a lot less about throwing away local changes and
care a lot more about resetting the workspace into a known state, methods like this is more useful.
For compatibility reasons, the order of the parameter is different from GitClient.checkout(String, String).
checkoutBranch in interface GitClientGitException
org.eclipse.jgit.lib.ObjectId mergeBase(org.eclipse.jgit.lib.ObjectId sha1,
org.eclipse.jgit.lib.ObjectId sha12)
String getAllLogEntries(String branch)
List<String> showRevision(Revision r)
throws GitException
GitException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||