Class RefTreeBatch

    • Method Detail

      • execute

        public void execute​(RevWalk rw,
                            ProgressMonitor monitor)
                     throws java.io.IOException
        Execute this batch update without option strings.
        Overrides:
        execute in class BatchRefUpdate
        Parameters:
        rw - a RevWalk to parse tags in case the storage system wants to store them pre-peeled, a common performance optimization.
        monitor - progress monitor to receive update status on.
        Throws:
        java.io.IOException - the database is unable to accept the update. Individual command status must be tested to determine if there is a partial failure, or a total failure.
      • init

        void init​(RevWalk rw)
           throws java.io.IOException
        Throws:
        java.io.IOException
      • exactRef

        @Nullable
        Ref exactRef​(ObjectReader reader,
                     java.lang.String name)
              throws java.io.IOException
        Throws:
        java.io.IOException
      • execute

        void execute​(RevWalk rw,
                     java.util.List<Command> todo)
              throws java.io.IOException
        Execute an update from RefTreeUpdate or RefTreeRename.
        Parameters:
        rw - current RevWalk handling the update or rename.
        todo - commands to execute. Must never be a bootstrap reference name.
        Throws:
        java.io.IOException - the storage system is unable to read or write data.
      • apply

        private boolean apply​(java.util.List<Command> todo)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • commit

        private void commit​(RevWalk rw,
                            java.util.List<Command> todo)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • updateBootstrap

        private void updateBootstrap​(RevWalk rw,
                                     ReceiveCommand commit)
                              throws java.io.IOException
        Throws:
        java.io.IOException