public class PreReceiveHookChain extends Object implements PreReceiveHook
PreReceiveHookthat delegates to a list of other hooks.
Hooks are run in the order passed to the constructor.
|Modifier and Type||Method and Description|
Create a new hook chaining the given hooks together.
Invoked just before commands are executed.
public static PreReceiveHook newChain(List<? extends PreReceiveHook> hooks)
hooks- hooks to execute, in order.
public void onPreReceive(ReceivePack rp, Collection<ReceiveCommand> commands)
See the class description for how this method can impact execution.
rp- the process handling the current receive. Hooks may obtain details about the destination repository through this handle.
commands- unmodifiable set of valid commands still pending execution. May be the empty set.
Copyright © 2018 Eclipse JGit Project. All rights reserved.