Class PostReceiveHookChain

    • Method Detail

      • newChain

        public static PostReceiveHook newChain​(List<? extends PostReceiveHook> hooks)
        Create a new hook chaining the given hooks together.
        hooks - hooks to execute, in order.
        a new hook chain of the given hooks.
      • onPostReceive

        public void onPostReceive​(ReceivePack rp,
                                  Collection<ReceiveCommand> commands)
        Invoked after all commands are executed and status has been returned.
        Specified by:
        onPostReceive in interface PostReceiveHook
        rp - the process handling the current receive. Hooks may obtain details about the destination repository through this handle.
        commands - unmodifiable set of successfully completed commands. May be the empty set.