Package com.google.gerrit.server.change
Class RevisionJson
java.lang.Object
com.google.gerrit.server.change.RevisionJson
Produces
RevisionInfo
and CommitInfo
which are serialized to JSON afterwards.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetCommitInfo
(Project.NameKey project, org.eclipse.jgit.revwalk.RevWalk rw, org.eclipse.jgit.revwalk.RevCommit commit, boolean addLinks, boolean fillCommit, String branchName, String changeKey, int numericChangeId) Returns aCommitInfo
based on a commit and formatting options.getRevisionInfo
(ChangeData cd, PatchSet in) Returns aRevisionInfo
based on a change and patch set.
-
Method Details
-
getRevisionInfo
public RevisionInfo getRevisionInfo(ChangeData cd, PatchSet in) throws PatchListNotAvailableException, GpgException, IOException, PermissionBackendException Returns aRevisionInfo
based on a change and patch set. Reads from the repository depending on the options provided when constructing this instance. -
getCommitInfo
public CommitInfo getCommitInfo(Project.NameKey project, org.eclipse.jgit.revwalk.RevWalk rw, org.eclipse.jgit.revwalk.RevCommit commit, boolean addLinks, boolean fillCommit, String branchName, String changeKey, int numericChangeId) throws IOException Returns aCommitInfo
based on a commit and formatting options. Uses the provided RevWalk and assumes it is backed by an open repository.- Throws:
IOException
-