Interface NoteDbRewriter

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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.
    • Method Detail

      • 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