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, LOCAL_BRANCH_PREFIX, 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, toString
protected 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 GitFunction
public 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 GitFunction
org.eclipse.jgit.api.errors.GitAPIException
IOException
public 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 PageableGitFunction
org.eclipse.jgit.api.errors.GitAPIException
IOException
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.