public class GitHistory extends GitFunction implements PageableGitFunction
GitFunction that returns the history information about the (latest) commits in a particular branch or tag. The
structure of this area of the repository is as follows:
/commits/{branchOrTagNameOrObjectId}/{objectId}
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_PAGE_SIZE |
protected static String |
ID |
protected static String |
NAME |
connector, DELIMITER, name, REMOTE_BRANCH_PREFIX, REVERSE_REF_COMPARATOR, TAG_PREFIX| Constructor and Description |
|---|
GitHistory(GitConnector connector) |
| Modifier and Type | Method and Description |
|---|---|
Document |
execute(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.api.Git git,
CallSpecification spec,
DocumentWriter writer,
Values values) |
Document |
execute(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.api.Git git,
CallSpecification spec,
PageWriter writer,
Values values,
PageKey pageKey) |
boolean |
isPaged() |
protected static Object |
referenceToHistory(org.eclipse.jgit.lib.ObjectId id,
String branchOrTagName,
Values values) |
addBranchesAsChildren, addCommitsAsChildren, addCommitsAsPageOfChildren, addTagsAsChildren, authorName, branchRefForName, branchRefForName, commiterName, getName, isQueryable, resolveBranchOrTagOrCommitId, toStringprotected static final String NAME
protected static final String ID
protected static int DEFAULT_PAGE_SIZE
public GitHistory(GitConnector connector)
protected static Object referenceToHistory(org.eclipse.jgit.lib.ObjectId id, String branchOrTagName, Values values)
public boolean isPaged()
isPaged in class GitFunctionpublic Document execute(org.eclipse.jgit.lib.Repository repository, org.eclipse.jgit.api.Git git, CallSpecification spec, DocumentWriter writer, Values values) throws org.eclipse.jgit.api.errors.GitAPIException, IOException
execute in class GitFunctionorg.eclipse.jgit.api.errors.GitAPIExceptionIOExceptionpublic Document execute(org.eclipse.jgit.lib.Repository repository, org.eclipse.jgit.api.Git git, CallSpecification spec, PageWriter writer, Values values, PageKey pageKey) throws org.eclipse.jgit.api.errors.GitAPIException, IOException
execute in interface PageableGitFunctionorg.eclipse.jgit.api.errors.GitAPIExceptionIOExceptionCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.