Class DeleteChangeMessageRewriter

  • All Implemented Interfaces:
    NoteDbRewriter

    public class DeleteChangeMessageRewriter
    extends Object
    implements NoteDbRewriter
    Deletes a change message from NoteDb by rewriting the commit history. After deletion, the whole change message will be replaced by a new message indicating the original change message has been deleted for the given reason.
    • Method Detail

      • rewriteCommitHistory

        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
        Description copied from interface: NoteDbRewriter
        Rewrites the commit history.
        Specified by:
        rewriteCommitHistory in interface NoteDbRewriter
        Parameters:
        revWalk - a RevWalk instance.
        inserter - a ObjectInserter instance.
        currTip - the ObjectId of the ref's tip commit.
        Returns:
        the ObjectId of the ref's new tip commit.
        Throws:
        IOException