hudson.plugins.git.util
Class GitUtils
java.lang.Object
hudson.plugins.git.util.GitUtils
public class GitUtils
- extends java.lang.Object
|
Constructor Summary |
GitUtils(hudson.model.TaskListener listener,
IGitAPI git)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GitUtils
public GitUtils(hudson.model.TaskListener listener,
IGitAPI git)
getSubmodules
public java.util.List<IndexEntry> getSubmodules(java.lang.String treeIsh)
getAllBranchRevisions
public java.util.Collection<Revision> getAllBranchRevisions()
throws GitException,
java.io.IOException
- Return a list of "Revisions" - where a revision knows about all the branch names that refer to
a SHA1.
- Returns:
-
- Throws:
java.io.IOException
GitException
getRevisionContainingBranch
public Revision getRevisionContainingBranch(java.lang.String branchName)
throws GitException,
java.io.IOException
- Return the revision containing the branch name.
- Parameters:
branchName -
- Returns:
-
- Throws:
java.io.IOException
GitException
getRevisionForSHA1
public Revision getRevisionForSHA1(org.spearce.jgit.lib.ObjectId sha1)
throws GitException,
java.io.IOException
- Throws:
GitException
java.io.IOException
filterTipBranches
public java.util.Collection<Revision> filterTipBranches(java.util.Collection<Revision> revisions)
- Return a list of 'tip' branches (I.E. branches that aren't included entirely within another branch).
- Parameters:
git -
- Returns:
fixupNames
public static java.lang.String[] fixupNames(java.lang.String[] names,
java.lang.String[] urls)
Copyright © 2010. All Rights Reserved.