public class DeleteCommentRewriter extends Object implements NoteDbRewriter
Modifier and Type | Class and Description |
---|---|
static interface |
DeleteCommentRewriter.Factory |
Modifier and Type | Method and Description |
---|---|
static Map<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 Map<String,Comment> |
getPublishedComments(ChangeNoteUtil noteUtil,
Change.Id changeId,
org.eclipse.jgit.lib.ObjectReader reader,
org.eclipse.jgit.notes.NoteMap noteMap) |
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 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 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.IOException
org.eclipse.jgit.errors.ConfigInvalidException
public static Map<String,Comment> getPublishedComments(ChangeNoteJson changeNoteJson, LegacyChangeNoteRead legacyChangeNoteRead, Change.Id changeId, org.eclipse.jgit.lib.ObjectReader reader, org.eclipse.jgit.notes.NoteMap noteMap) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
public static Map<String,Comment> getPublishedComments(ChangeNoteUtil noteUtil, Change.Id changeId, org.eclipse.jgit.lib.ObjectReader reader, org.eclipse.jgit.notes.NoteMap noteMap) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
IOException
org.eclipse.jgit.errors.ConfigInvalidException