@Deprecated public interface IGitAPI extends GitClient
CREDENTIALS_MATCHER, quietRemoteBranches, verbose| Modifier and Type | Method and Description |
|---|---|
void |
changelog(String revFrom,
String revTo,
OutputStream fos)
Deprecated.
changelog.
|
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(RemoteConfig source)
Deprecated.
Clone repository from source to this repository.
|
void |
clone(RemoteConfig rc,
boolean useShallowClone)
Deprecated.
Clone repository from
RemoteConfig rc to this repository. |
void |
fetch()
Deprecated.
Retrieve commits from default remote.
|
void |
fetch(RemoteConfig remoteRepository)
Deprecated.
Retrieve commits from RemoteConfig.
|
void |
fetch(String repository,
String refspec)
Deprecated.
Retrieve commits based on refspec from repository.
|
void |
fixSubmoduleUrls(String remote,
hudson.model.TaskListener listener)
Deprecated.
fixSubmoduleUrls.
|
String |
getAllLogEntries(String branch)
Deprecated.
|
List<Branch> |
getBranchesContaining(String revspec)
Deprecated.
|
String |
getDefaultRemote(String _default_)
Deprecated.
Returns name of default remote.
|
String |
getRemoteUrl(String name,
String GIT_DIR)
Deprecated.
Returns URL of remote name in repository GIT_DIR.
|
String |
getSubmoduleUrl(String name)
Deprecated.
Returns URL of the named submodule.
|
List<Tag> |
getTagsOnCommit(String revName)
Deprecated.
getTagsOnCommit.
|
boolean |
hasGitModules(String treeIsh)
Deprecated.
Returns true if this repository has submodules.
|
boolean |
isBareRepository()
Deprecated.
Returns true if this repositry is bare.
|
boolean |
isBareRepository(String GIT_DIR)
Deprecated.
Detect whether a repository at the given path is bare or not.
|
List<IndexEntry> |
lsTree(String treeIsh)
Deprecated.
Use
lsTree(String, boolean) to be explicit about the recursion behaviour. |
List<IndexEntry> |
lsTree(String treeIsh,
boolean recursive)
Deprecated.
lsTree.
|
void |
merge(String revSpec)
Deprecated.
Merge commits from revspec into the current branch.
|
ObjectId |
mergeBase(ObjectId sha1,
ObjectId sha2)
Deprecated.
mergeBase.
|
void |
push(RemoteConfig repository,
String revspec)
Deprecated.
Push revspec to repository.
|
void |
reset()
Deprecated.
Reset the contents of the working directory of this
repository.
|
void |
reset(boolean hard)
Deprecated.
Reset the contents of the working directory of this
repository.
|
List<ObjectId> |
revListBranch(String branchId)
Deprecated.
revListBranch.
|
void |
setRemoteUrl(String name,
String url,
String GIT_DIR)
Deprecated.
Set remote repository name and URL.
|
void |
setSubmoduleUrl(String name,
String url)
Deprecated.
Sets URL of the named submodule.
|
void |
setupSubmoduleUrls(String remote,
hudson.model.TaskListener listener)
Deprecated.
|
List<String> |
showRevision(Revision r)
Deprecated.
showRevision.
|
void |
submoduleSync()
Deprecated.
Synchronizes submodules' remote URL configuration setting to
the value specified in .gitmodules.
|
add, addCredentials, addDefaultCredentials, addNote, addRemoteUrl, addSubmodule, appendNote, branch, changelog, changelog, checkout, checkout, checkout, clean, clean, clearCredentials, clone_, clone, commit, commit, deleteBranch, deleteRef, deleteTag, describe, fetch_, fetch, fetch, fetch, getBranches, getBranchesContaining, getHeadRev, getHeadRev, getRefNames, getRemoteBranches, getRemoteReferences, getRemoteSymbolicReferences, getRemoteTagNames, getRemoteUrl, getRepository, getSubmodules, getTagMessage, getTagNames, getTags, getWorkTree, hasGitModules, hasGitRepo, init_, init, isCommitInRepo, merge, merge, prune, push, push, push, rebase, ref, refExists, revList_, revList, revListAll, revParse, setAuthor, setAuthor, setCommitter, setCommitter, setCredentials, setProxy, setRemoteUrl, setupSubmoduleUrls, showRevision, showRevision, showRevision, subGit, submoduleClean, submoduleInit, submoduleUpdate, submoduleUpdate, submoduleUpdate, submoduleUpdate, submoduleUpdate, tag, tagExists, withRepositoryboolean hasGitModules(String treeIsh) throws GitException, InterruptedException
treeIsh - an ignored argument, kept for compatibilityGitException - if underlying git operation fails.InterruptedException - if interrupted.GitClient.hasGitModules()String getRemoteUrl(String name, String GIT_DIR) throws GitException, InterruptedException
name - name for the remote repository, for examnple, "origin"GIT_DIR - directory containing git repositoryGitException - if underlying git operation fails.InterruptedException - if interrupted.void setRemoteUrl(String name, String url, String GIT_DIR) throws GitException, InterruptedException
name - name for the remote repository, for examnple, "origin"url - URL for the remote repository, for example git://github.com/jenkinsci/git-client-plugin.gitGIT_DIR - directory containing git repositoryGitException - if underlying git operation fails.InterruptedException - if interrupted.String getDefaultRemote(String _default_) throws GitException, InterruptedException
_default_ - value to return if no remote is defined in this repositoryGitException - if underlying git operation fails.InterruptedException - if interrupted.boolean isBareRepository()
throws GitException,
InterruptedException
GitException - if underlying git operation fails.InterruptedException - if interrupted.boolean isBareRepository(String GIT_DIR) throws GitException, InterruptedException
GIT_DIR - The path to the repository (must be to .git dir).GitException - on failureInterruptedException - if interruptedvoid submoduleSync()
throws GitException,
InterruptedException
GitException - if underlying git operation fails.InterruptedException - if interrupted.String getSubmoduleUrl(String name) throws GitException, InterruptedException
name - submodule name whose URL will be returnedGitException - if underlying git operation fails.InterruptedException - if interrupted.void setSubmoduleUrl(String name, String url) throws GitException, InterruptedException
name - submodule name whose URL will be seturl - URL for the named submoduleGitException - if underlying git operation fails.InterruptedException - if interrupted.void fixSubmoduleUrls(String remote, hudson.model.TaskListener listener) throws GitException, InterruptedException
remote - a String object.listener - a TaskListener object.GitException - if underlying git operation fails.InterruptedException - if interrupted.void setupSubmoduleUrls(String remote, hudson.model.TaskListener listener) throws GitException, InterruptedException
GitExceptionInterruptedExceptionvoid fetch(String repository, String refspec) throws GitException, InterruptedException
repository - URL of the repository to be retrievedrefspec - definition of mapping from remote refs to local refsGitException - if underlying git operation fails.InterruptedException - if interrupted.void fetch(RemoteConfig remoteRepository) throws InterruptedException
remoteRepository - remote configuration from which refs will be retrievedInterruptedException - if interrupted.void fetch()
throws GitException,
InterruptedException
GitException - if underlying git operation fails.InterruptedException - if interrupted.void reset(boolean hard)
throws GitException,
InterruptedException
hard - reset as though "--hard" were passed to "git reset"GitException - if underlying git operation fails.InterruptedException - if interrupted.void reset()
throws GitException,
InterruptedException
GitException - if underlying git operation fails.InterruptedException - if interrupted.void push(RemoteConfig repository, String revspec) throws GitException, InterruptedException
repository - git repository to receive commitsrevspec - commits to be pushedGitException - if underlying git operating failsInterruptedException - if interruptedvoid merge(String revSpec) throws GitException, InterruptedException
revSpec - the revision specification to be merged (for example, origin/master)GitException - if underlying git operation fails.InterruptedException - if interrupted.void clone(RemoteConfig source) throws GitException, InterruptedException
source - remote repository to be clonedGitException - if underlying git operation fails.InterruptedException - if interrupted.void clone(RemoteConfig rc, boolean useShallowClone) throws GitException, InterruptedException
RemoteConfig rc to this repository.rc - the remote config for the remote repositoryuseShallowClone - if true, use a shallow cloneGitException - if underlying git operation fails.InterruptedException - if interrupted.@Deprecated List<Branch> getBranchesContaining(String revspec) throws GitException, InterruptedException
GitClient.getBranchesContaining(String, boolean)revspec - substring to be searched for branch nameGitException - on failureInterruptedException - if interrupted@Deprecated List<IndexEntry> lsTree(String treeIsh) throws GitException, InterruptedException
lsTree(String, boolean) to be explicit about the recursion behaviour.treeIsh - string representation of a treeIsh itemGitException - on failureInterruptedException - if interruptedList<IndexEntry> lsTree(String treeIsh, boolean recursive) throws GitException, InterruptedException
treeIsh - a String object.recursive - a boolean.List object.GitException - if underlying git operation fails.InterruptedException - if interrupted.List<ObjectId> revListBranch(String branchId) throws GitException, InterruptedException
branchId - a String object.List object.GitException - if underlying git operation fails.InterruptedException - if interrupted.List<Tag> getTagsOnCommit(String revName) throws GitException, IOException, InterruptedException
revName - a String object.List object.GitException - if underlying git operation fails.IOException - if any IO failureInterruptedException - if interrupted.void changelog(String revFrom, String revTo, OutputStream fos) throws GitException, InterruptedException
changelog in interface GitClientrevFrom - a String object.revTo - a String object.fos - a OutputStream object.GitException - if underlying git operation fails.InterruptedException - if interrupted.void checkoutBranch(String branch, String commitish) throws GitException, InterruptedException
HEAD points to branch. In other words, the workspace is on the specified branch.
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 GitClientbranch - a String object.commitish - a String object.GitException - if underlying git operation fails.InterruptedException - if interrupted.ObjectId mergeBase(ObjectId sha1, ObjectId sha2) throws InterruptedException
sha1 - a ObjectId object.sha2 - a ObjectId object.ObjectId object.InterruptedException - if interrupted.List<String> showRevision(Revision r) throws GitException, InterruptedException
r - a Revision object.List object.GitException - if underlying git operation fails.InterruptedException - if interrupted.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @Deprecated String getAllLogEntries(String branch) throws InterruptedException
branch - a String object.String object.InterruptedException - if interrupted.Copyright © 2013–2020. All rights reserved.