|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.git.util.GitUtils
public class GitUtils
| Constructor Summary | |
|---|---|
GitUtils(hudson.model.TaskListener listener,
IGitAPI git)
|
|
| Method Summary | |
|---|---|
Collection<Revision> |
filterTipBranches(Collection<Revision> revisions)
Return a list of 'tip' branches (I.E. |
static String[] |
fixupNames(String[] names,
String[] urls)
|
Collection<Revision> |
getAllBranchRevisions()
Return a list of "Revisions" - where a revision knows about all the branch names that refer to a SHA1. |
static hudson.EnvVars |
getPollEnvironment(hudson.model.AbstractProject p,
hudson.FilePath ws,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
An attempt to generate at least semi-useful EnvVars for polling calls, based on previous build. |
Revision |
getRevisionContainingBranch(String branchName)
Return the revision containing the branch name. |
Revision |
getRevisionForSHA1(org.spearce.jgit.lib.ObjectId sha1)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GitUtils(hudson.model.TaskListener listener,
IGitAPI git)
| Method Detail |
|---|
public Collection<Revision> getAllBranchRevisions()
throws GitException,
IOException
IOException
GitException
public Revision getRevisionContainingBranch(String branchName)
throws GitException,
IOException
branchName -
IOException
GitException
public Revision getRevisionForSHA1(org.spearce.jgit.lib.ObjectId sha1)
throws GitException,
IOException
GitException
IOExceptionpublic Collection<Revision> filterTipBranches(Collection<Revision> revisions)
git -
public static hudson.EnvVars getPollEnvironment(hudson.model.AbstractProject p,
hudson.FilePath ws,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
throws IOException,
InterruptedException
IOException
InterruptedException
public static String[] fixupNames(String[] names,
String[] urls)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||