Class CommitRewriter.RunOptions

java.lang.Object
com.google.gerrit.server.notedb.CommitRewriter.RunOptions
All Implemented Interfaces:
Serializable
Enclosing class:
CommitRewriter

public static class CommitRewriter.RunOptions extends Object implements Serializable
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
    Whether to rewrite the commit history or only find refs that need to be fixed.
    int
    Max number of refs to update in a single BatchRefUpdate.
    int
    Max number of refs to fix by a single CommitRewriter.RefsUpdate run.
    boolean
    Whether to compute and output the diff of the commit history for the backfilled refs.
    boolean
    Whether to verify that resulting commits contain user data for the accounts that are linked to a change, see CommitRewriter.verifyCommit(java.lang.String, org.eclipse.jgit.lib.PersonIdent, java.util.Collection<com.google.gerrit.server.account.AccountState>), CommitRewriter.collectAccounts(com.google.gerrit.server.notedb.ChangeNotes).
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • dryRun

      public boolean dryRun
      Whether to rewrite the commit history or only find refs that need to be fixed.
    • verifyCommits

      public boolean verifyCommits
      Whether to verify that resulting commits contain user data for the accounts that are linked to a change, see CommitRewriter.verifyCommit(java.lang.String, org.eclipse.jgit.lib.PersonIdent, java.util.Collection<com.google.gerrit.server.account.AccountState>), CommitRewriter.collectAccounts(com.google.gerrit.server.notedb.ChangeNotes).
    • outputDiff

      public boolean outputDiff
      Whether to compute and output the diff of the commit history for the backfilled refs.
    • maxRefsInBatch

      public int maxRefsInBatch
      Max number of refs to update in a single BatchRefUpdate.
    • maxRefsToUpdate

      public int maxRefsToUpdate
      Max number of refs to fix by a single CommitRewriter.RefsUpdate run. Since the second run on the same set of refs is a no-op, running with this option in a loop will eventually fix all refs. The number of executed BatchRefUpdate depends on maxRefsInBatch option.
  • Constructor Details

    • RunOptions

      public RunOptions()