|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.git.GitAPI
public class GitAPI
| Constructor Summary | |
|---|---|
GitAPI(java.lang.String gitExe,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
hudson.EnvVars environment)
|
|
| Method Summary | |
|---|---|
void |
add(java.lang.String filePattern)
|
void |
branch(java.lang.String name)
|
void |
changelog(java.lang.String revFrom,
java.lang.String revTo,
java.io.OutputStream fos)
|
void |
checkout(java.lang.String ref)
|
void |
clean()
|
void |
clone(org.spearce.jgit.transport.RemoteConfig remoteConfig)
Start from scratch and clone the whole repository. |
void |
commit(java.io.File f)
|
void |
deleteTag(java.lang.String tagName)
|
java.lang.String |
describe(java.lang.String commitIsh)
|
void |
fetch()
|
void |
fetch(org.spearce.jgit.transport.RemoteConfig remoteRepository)
|
void |
fetch(java.lang.String repository,
java.lang.String refspec)
|
java.lang.String |
getAllLogEntries(java.lang.String branch)
|
java.util.List<Branch> |
getBranches()
|
java.util.List<Branch> |
getBranchesContaining(java.lang.String revspec)
|
hudson.EnvVars |
getEnvironment()
|
java.lang.String |
getGitExe()
|
java.util.List<Branch> |
getRemoteBranches()
|
java.util.Set<java.lang.String> |
getTagNames(java.lang.String tagPattern)
|
java.util.List<org.spearce.jgit.lib.Tag> |
getTagsOnCommit(java.lang.String revName)
|
boolean |
hasGitModules()
|
boolean |
hasGitRepo()
|
void |
init()
|
java.lang.String |
launchCommand(hudson.util.ArgumentListBuilder args)
Launch command using the workspace as working directory |
java.lang.String |
launchCommand(java.lang.String... args)
Launch command using the workspace as working directory |
java.util.List<IndexEntry> |
lsTree(java.lang.String treeIsh)
|
void |
merge(java.lang.String revSpec)
Merge any changes into the head. |
org.spearce.jgit.lib.ObjectId |
mergeBase(org.spearce.jgit.lib.ObjectId id1,
org.spearce.jgit.lib.ObjectId id2)
|
void |
push(org.spearce.jgit.transport.RemoteConfig repository,
java.lang.String refspec)
|
java.util.List<org.spearce.jgit.lib.ObjectId> |
revList(java.lang.String... extraArgs)
|
java.util.List<org.spearce.jgit.lib.ObjectId> |
revListAll()
|
java.util.List<org.spearce.jgit.lib.ObjectId> |
revListBranch(java.lang.String branchId)
|
org.spearce.jgit.lib.ObjectId |
revParse(java.lang.String revName)
|
void |
submoduleInit()
Init submodules. |
void |
submoduleSync()
Sync submodule URLs |
void |
submoduleUpdate()
Update submodules. |
void |
tag(java.lang.String tagName,
java.lang.String comment)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GitAPI(java.lang.String gitExe,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
hudson.EnvVars environment)
| Method Detail |
|---|
public java.lang.String getGitExe()
getGitExe in interface IGitAPIpublic hudson.EnvVars getEnvironment()
getEnvironment in interface IGitAPI
public void init()
throws GitException
init in interface IGitAPIGitException
public boolean hasGitRepo()
throws GitException
hasGitRepo in interface IGitAPIGitException
public boolean hasGitModules()
throws GitException
hasGitModules in interface IGitAPIGitException
public void fetch(java.lang.String repository,
java.lang.String refspec)
throws GitException
fetch in interface IGitAPIGitException
public void fetch()
throws GitException
fetch in interface IGitAPIGitException
public void clone(org.spearce.jgit.transport.RemoteConfig remoteConfig)
throws GitException
clone in interface IGitAPIremoteConfig - remote config
GitException - if deleting or cloning the workspace fails
public void clean()
throws GitException
clean in interface IGitAPIGitException
public org.spearce.jgit.lib.ObjectId revParse(java.lang.String revName)
throws GitException
revParse in interface IGitAPIGitException
public java.lang.String describe(java.lang.String commitIsh)
throws GitException
describe in interface IGitAPIGitException
public void changelog(java.lang.String revFrom,
java.lang.String revTo,
java.io.OutputStream fos)
throws GitException
changelog in interface IGitAPIGitException
public void merge(java.lang.String revSpec)
throws GitException
merge in interface IGitAPIrevSpec - the revision
GitException - if the emrge fails
public void submoduleInit()
throws GitException
submoduleInit in interface IGitAPIGitException - if executing the Git command fails
public void submoduleSync()
throws GitException
submoduleSync in interface IGitAPIGitException
public void submoduleUpdate()
throws GitException
submoduleUpdate in interface IGitAPIGitException - if executing the Git command fails
public void tag(java.lang.String tagName,
java.lang.String comment)
throws GitException
tag in interface IGitAPIGitException
public java.lang.String launchCommand(hudson.util.ArgumentListBuilder args)
throws GitException
args -
GitException
public java.lang.String launchCommand(java.lang.String... args)
throws GitException
args -
GitException
public void push(org.spearce.jgit.transport.RemoteConfig repository,
java.lang.String refspec)
throws GitException
push in interface IGitAPIGitException
public java.util.List<Branch> getBranches()
throws GitException
getBranches in interface IGitAPIGitException
public java.util.List<Branch> getRemoteBranches()
throws GitException,
java.io.IOException
getRemoteBranches in interface IGitAPIGitException
java.io.IOException
public java.util.List<Branch> getBranchesContaining(java.lang.String revspec)
throws GitException
getBranchesContaining in interface IGitAPIGitException
public void checkout(java.lang.String ref)
throws GitException
checkout in interface IGitAPIGitException
public void deleteTag(java.lang.String tagName)
throws GitException
deleteTag in interface IGitAPIGitException
public java.util.List<IndexEntry> lsTree(java.lang.String treeIsh)
throws GitException
lsTree in interface IGitAPIGitException
public java.util.List<org.spearce.jgit.lib.ObjectId> revListAll()
throws GitException
revListAll in interface IGitAPIGitException
public java.util.List<org.spearce.jgit.lib.ObjectId> revListBranch(java.lang.String branchId)
throws GitException
revListBranch in interface IGitAPIGitException
public java.util.List<org.spearce.jgit.lib.ObjectId> revList(java.lang.String... extraArgs)
throws GitException
GitException
public void add(java.lang.String filePattern)
throws GitException
add in interface IGitAPIGitException
public void branch(java.lang.String name)
throws GitException
branch in interface IGitAPIGitException
public void commit(java.io.File f)
throws GitException
commit in interface IGitAPIGitException
public void fetch(org.spearce.jgit.transport.RemoteConfig remoteRepository)
throws GitException
fetch in interface IGitAPIGitException
public org.spearce.jgit.lib.ObjectId mergeBase(org.spearce.jgit.lib.ObjectId id1,
org.spearce.jgit.lib.ObjectId id2)
mergeBase in interface IGitAPIpublic java.lang.String getAllLogEntries(java.lang.String branch)
getAllLogEntries in interface IGitAPI
public java.util.List<org.spearce.jgit.lib.Tag> getTagsOnCommit(java.lang.String revName)
throws GitException,
java.io.IOException
getTagsOnCommit in interface IGitAPIGitException
java.io.IOException
public java.util.Set<java.lang.String> getTagNames(java.lang.String tagPattern)
throws GitException
getTagNames in interface IGitAPIGitException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||