|
||||||||||
| 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.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener)
|
|
| Method Summary | |
|---|---|
void |
checkout(java.lang.String ref)
|
void |
clone(java.lang.String source)
Start from scratch and clone the whole repository. |
protected java.util.Map<java.lang.String,java.lang.String> |
createEnvVarMap()
|
void |
deleteTag(java.lang.String tagName)
|
void |
diff(java.io.OutputStream baos)
|
void |
fetch()
|
java.util.List<Branch> |
getBranches()
|
java.util.List<Branch> |
getBranchesContaining(java.lang.String revspec)
|
java.lang.String |
getGitExe()
|
java.util.List<Tag> |
getTags()
|
boolean |
hasGitModules()
|
boolean |
hasGitRepo()
|
void |
log(java.lang.String revFrom,
java.lang.String revTo,
java.io.OutputStream fos)
|
void |
merge(java.lang.String revSpec)
Merge any changes into the head. |
void |
push(java.lang.String refspec)
|
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.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener)
| Method Detail |
|---|
public java.lang.String getGitExe()
public boolean hasGitRepo()
throws GitException
hasGitRepo in interface IGitAPIGitException
public boolean hasGitModules()
throws GitException
hasGitModules 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 diff(java.io.OutputStream baos)
throws GitException
diff in interface IGitAPIGitException
public void log(java.lang.String revFrom,
java.lang.String revTo,
java.io.OutputStream fos)
throws GitException
log 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> getTags()
throws GitException
getTags 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||