public class BanCommit
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
BanCommitResult |
ban(Project.NameKey project,
CurrentUser user,
java.util.List<org.eclipse.jgit.lib.ObjectId> commitsToBan,
java.lang.String reason) |
static org.eclipse.jgit.notes.NoteMap |
loadRejectCommitsMap(org.eclipse.jgit.lib.Repository repo,
org.eclipse.jgit.revwalk.RevWalk walk)
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, org.eclipse.jgit.revwalk.RevWalk walk) throws java.io.IOException
refs/meta/reject-commits
.repo
- repository from which the rejected commits should be loadedwalk
- open revwalk on repo.java.io.IOException
- the map cannot be loaded.public BanCommitResult ban(Project.NameKey project, CurrentUser user, java.util.List<org.eclipse.jgit.lib.ObjectId> commitsToBan, java.lang.String reason) throws AuthException, com.google.gerrit.git.LockFailureException, java.io.IOException, PermissionBackendException
AuthException
com.google.gerrit.git.LockFailureException
java.io.IOException
PermissionBackendException