Package com.google.gerrit.server.notedb
Interface NoteDbRewriter
-
- All Known Implementing Classes:
DeleteChangeMessageRewriter
,DeleteCommentRewriter
public 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
- aRevWalk
instance.inserter
- aObjectInserter
instance.currTip
- theObjectId
of the ref's tip commit.- Returns:
- the
ObjectId
of the ref's new tip commit. - Throws:
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
-