public class RevisionJson
extends java.lang.Object
RevisionInfo
and CommitInfo
which are serialized to JSON afterwards.Modifier and Type | Class and Description |
---|---|
static interface |
RevisionJson.Factory |
Modifier and Type | Method and Description |
---|---|
CommitInfo |
getCommitInfo(Project.NameKey project,
org.eclipse.jgit.revwalk.RevWalk rw,
org.eclipse.jgit.revwalk.RevCommit commit,
boolean addLinks,
boolean fillCommit)
Returns a
CommitInfo based on a commit and formatting options. |
RevisionInfo |
getRevisionInfo(ChangeData cd,
PatchSet in)
Returns a
RevisionInfo based on a change and patch set. |
public RevisionInfo getRevisionInfo(ChangeData cd, PatchSet in) throws PatchListNotAvailableException, GpgException, java.io.IOException, PermissionBackendException
RevisionInfo
based on a change and patch set. Reads from the repository
depending on the options provided when constructing this instance.PatchListNotAvailableException
GpgException
java.io.IOException
PermissionBackendException
public CommitInfo getCommitInfo(Project.NameKey project, org.eclipse.jgit.revwalk.RevWalk rw, org.eclipse.jgit.revwalk.RevCommit commit, boolean addLinks, boolean fillCommit) throws java.io.IOException
CommitInfo
based on a commit and formatting options. Uses the provided
RevWalk and assumes it is backed by an open repository.java.io.IOException