|
||||||||||
| 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)
|
|
| 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 |
clone(java.lang.String source)
Start from scratch and clone the whole repository. |
void |
commit(java.io.File f)
|
protected java.util.Map<java.lang.String,java.lang.String> |
createEnvVarMap()
|
void |
deleteTag(java.lang.String tagName)
|
void |
fetch()
|
void |
fetch(java.lang.String repository,
java.lang.String refspec)
|
java.util.List<Branch> |
getBranches()
|
java.util.List<Branch> |
getBranchesContaining(java.lang.String revspec)
|
java.lang.String |
getGitExe()
|
java.util.List<Tag> |
getHudsonTags()
|
boolean |
hasGitModules()
|
boolean |
hasGitRepo()
|
java.util.List<IndexEntry> |
lsTree(java.lang.String treeIsh)
|
void |
merge(java.lang.String revSpec)
Merge any changes into the head. |
void |
push(java.lang.String refspec)
|
java.util.List<java.lang.String> |
revList(java.lang.String... extraArgs)
|
java.util.List<java.lang.String> |
revListAll()
|
java.util.List<java.lang.String> |
revListBranch(java.lang.String branchId)
|
java.lang.String |
revParse(java.lang.String revName)
|
void |
submoduleInit()
Init submodules. |
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)
| Method Detail |
|---|
public java.lang.String getGitExe()
getGitExe in interface IGitAPI
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(java.lang.String source)
throws GitException
clone in interface IGitAPIGitException
public java.lang.String revParse(java.lang.String revName)
throws GitException
revParse 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 IGitAPIGitException
public void submoduleInit()
throws GitException
submoduleInit in interface IGitAPIGitException
public void submoduleUpdate()
throws GitException
submoduleUpdate in interface IGitAPIGitExceptionprotected final java.util.Map<java.lang.String,java.lang.String> createEnvVarMap()
public void tag(java.lang.String tagName,
java.lang.String comment)
throws GitException
tag in interface IGitAPIGitException
public java.util.List<Tag> getHudsonTags()
throws GitException
getHudsonTags in interface IGitAPIGitException
public void push(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> 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<java.lang.String> revListAll()
throws GitException
revListAll in interface IGitAPIGitException
public java.util.List<java.lang.String> revListBranch(java.lang.String branchId)
throws GitException
revListBranch in interface IGitAPIGitException
public java.util.List<java.lang.String> 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||