Class RefUpdateUtil


  • public class RefUpdateUtil
    extends Object
    Static utilities for working with JGit's ref update APIs.
    • 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; see checkResults(BatchRefUpdate) for details.
        IOException - if any result was not OK.