public class GitCommitDetails extends GitFunction implements PageableGitFunction
GitFunction that returns the information about a particular commit. The structure of this area of the repository is
as follows:
/commit/{branchOrTagNameOrObjectId}
| Modifier and Type | Field and Description |
|---|---|
static String |
DIFF_CHARSET_NAME
The name of the character set that is used when building the patch difference for a commit.
|
protected static String |
ID |
protected static String |
NAME |
connector, DEFAULT_PAGE_SIZE, DELIMITER, name, pageSize, REMOTE_BRANCH_PREFIX, REVERSE_REF_COMPARATOR, TAG_PREFIX| Constructor and Description |
|---|
GitCommitDetails(GitConnector connector) |
| Modifier and Type | Method and Description |
|---|---|
protected List<org.eclipse.jgit.diff.DiffEntry> |
computeDifferences(org.eclipse.jgit.revwalk.RevCommit commit,
org.eclipse.jgit.revwalk.RevWalk walker,
org.eclipse.jgit.lib.Repository repository) |
protected String |
computePatch(Iterable<org.eclipse.jgit.diff.DiffEntry> entries,
org.eclipse.jgit.lib.Repository repository) |
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[] |
referencesToCommits(org.eclipse.jgit.lib.ObjectId[] ids,
Values values) |
protected static Object |
referenceToCommit(org.eclipse.jgit.lib.ObjectId id,
Values values) |
addBranchesAsChildren, addCommitsAsChildren, addCommitsAsPageOfChildren, addTagsAsChildren, authorName, branchRefForName, branchRefForName, commiterName, getName, isQueryable, resolveBranchOrTagOrCommitId, toStringpublic static final String DIFF_CHARSET_NAME
protected static final String NAME
protected static final String ID
public GitCommitDetails(GitConnector connector)
protected static Object referenceToCommit(org.eclipse.jgit.lib.ObjectId id, Values values)
protected static Object[] referencesToCommits(org.eclipse.jgit.lib.ObjectId[] ids, Values values)
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 GitFunctionorg.eclipse.jgit.api.errors.GitAPIExceptionIOExceptionpublic boolean isPaged()
isPaged in class GitFunctionpublic 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.GitAPIExceptionIOExceptionprotected List<org.eclipse.jgit.diff.DiffEntry> computeDifferences(org.eclipse.jgit.revwalk.RevCommit commit, org.eclipse.jgit.revwalk.RevWalk walker, org.eclipse.jgit.lib.Repository repository) throws org.eclipse.jgit.errors.MissingObjectException, org.eclipse.jgit.errors.IncorrectObjectTypeException, org.eclipse.jgit.errors.CorruptObjectException, IOException
org.eclipse.jgit.errors.MissingObjectExceptionorg.eclipse.jgit.errors.IncorrectObjectTypeExceptionorg.eclipse.jgit.errors.CorruptObjectExceptionIOExceptionprotected String computePatch(Iterable<org.eclipse.jgit.diff.DiffEntry> entries, org.eclipse.jgit.lib.Repository repository) throws IOException
IOExceptionCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.