public class DeleteCommentRewriter extends java.lang.Object implements NoteDbRewriter
Modifier and Type | Class and Description |
---|---|
static interface |
DeleteCommentRewriter.Factory |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,Comment> |
getPublishedComments(ChangeNoteJson changeNoteJson,
LegacyChangeNoteRead legacyChangeNoteRead,
Change.Id changeId,
org.eclipse.jgit.lib.ObjectReader reader,
org.eclipse.jgit.notes.NoteMap noteMap)
Gets all the comments which are presented at a commit.
|
static java.util.Map<java.lang.String,Comment> |
getPublishedComments(ChangeNoteUtil noteUtil,
Change.Id changeId,
org.eclipse.jgit.lib.ObjectReader reader,
org.eclipse.jgit.notes.NoteMap noteMap) |
java.lang.String |
getRefName()
Gets the name of the target ref which will be rewritten.
|
org.eclipse.jgit.lib.ObjectId |
rewriteCommitHistory(org.eclipse.jgit.revwalk.RevWalk revWalk,
org.eclipse.jgit.lib.ObjectInserter inserter,
org.eclipse.jgit.lib.ObjectId currTip)
Rewrites the commit history.
|
public java.lang.String getRefName()
NoteDbRewriter
getRefName
in interface NoteDbRewriter
public org.eclipse.jgit.lib.ObjectId rewriteCommitHistory(org.eclipse.jgit.revwalk.RevWalk revWalk, org.eclipse.jgit.lib.ObjectInserter inserter, org.eclipse.jgit.lib.ObjectId currTip) throws java.io.IOException, org.eclipse.jgit.errors.ConfigInvalidException
NoteDbRewriter
rewriteCommitHistory
in interface NoteDbRewriter
revWalk
- a RevWalk
instance.inserter
- a ObjectInserter
instance.currTip
- the ObjectId
of the ref's tip commit.ObjectId
of the ref's new tip commit.java.io.IOException
org.eclipse.jgit.errors.ConfigInvalidException
public static java.util.Map<java.lang.String,Comment> getPublishedComments(ChangeNoteJson changeNoteJson, LegacyChangeNoteRead legacyChangeNoteRead, Change.Id changeId, org.eclipse.jgit.lib.ObjectReader reader, org.eclipse.jgit.notes.NoteMap noteMap) throws java.io.IOException, org.eclipse.jgit.errors.ConfigInvalidException
java.io.IOException
org.eclipse.jgit.errors.ConfigInvalidException
public static java.util.Map<java.lang.String,Comment> getPublishedComments(ChangeNoteUtil noteUtil, Change.Id changeId, org.eclipse.jgit.lib.ObjectReader reader, org.eclipse.jgit.notes.NoteMap noteMap) throws java.io.IOException, org.eclipse.jgit.errors.ConfigInvalidException
java.io.IOException
org.eclipse.jgit.errors.ConfigInvalidException