public class BanCommit extends Object
| Modifier and Type | Method and Description |
|---|---|
BanCommitResult |
ban(ProjectControl projectControl,
List<org.eclipse.jgit.lib.ObjectId> commitsToBan,
String reason) |
static org.eclipse.jgit.notes.NoteMap |
loadRejectCommitsMap(org.eclipse.jgit.lib.Repository repo)
Loads a list of commits to reject from
refs/meta/reject-commits. |
public static org.eclipse.jgit.notes.NoteMap loadRejectCommitsMap(org.eclipse.jgit.lib.Repository repo)
throws IOException
refs/meta/reject-commits.repo - repository from which the rejected commits should be loadedIOException - the map cannot be loaded.public BanCommitResult ban(ProjectControl projectControl, List<org.eclipse.jgit.lib.ObjectId> commitsToBan, String reason) throws com.google.gerrit.common.errors.PermissionDeniedException, IOException, InterruptedException, MergeException, org.eclipse.jgit.api.errors.ConcurrentRefUpdateException
com.google.gerrit.common.errors.PermissionDeniedExceptionIOExceptionInterruptedExceptionMergeExceptionorg.eclipse.jgit.api.errors.ConcurrentRefUpdateException