Package com.google.gerrit.server.update
Class RefUpdateUtil
- java.lang.Object
-
- com.google.gerrit.server.update.RefUpdateUtil
-
public class RefUpdateUtil extends Object
Static utilities for working with JGit's ref update APIs.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
executeChecked(org.eclipse.jgit.lib.BatchRefUpdate bru, org.eclipse.jgit.revwalk.RevWalk rw)
Execute a batch ref update, throwing a checked exception if not all updates succeeded.
-
-
-
Method Detail
-
executeChecked
public static void executeChecked(org.eclipse.jgit.lib.BatchRefUpdate bru, org.eclipse.jgit.revwalk.RevWalk rw) throws IOException
Execute a batch ref update, throwing a checked exception if not all updates succeeded.- Parameters:
bru
- batch update; should already have been executed.- Throws:
LockFailureException
- if the transaction was aborted due to lock failure; seecheckResults(BatchRefUpdate)
for details.IOException
- if any result was notOK
.
-
-