Interface NoteDbRewriter

All Known Implementing Classes:
DeleteChangeMessageRewriter, DeleteCommentRewriter

public interface NoteDbRewriter
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
  • Method Details

    • getRefName

      String getRefName()
      Gets the name of the target ref which will be rewritten.
    • rewriteCommitHistory

      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
      Rewrites the commit history.
      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
      org.eclipse.jgit.errors.ConfigInvalidException