org.eclipse.jgit.transport.PreReceiveHook that delegates to a list of
other hooks.
Hooks are run in the order passed to the constructor.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final PreReceiveHook[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static PreReceiveHook | Returns: a new hook chain of the given hooks.hooks to execute, in order. hooks)Create a new hook chaining the given hooks together. |
| public void | onPreReceive(ReceivePack
the process handling the current receive. Hooks may obtain
details about the destination repository through this handle. rp, Collection<ReceiveCommand> unmodifiable set of valid commands still pending execution.
May be the empty set. commands)Implements org. Invoked just before commands are executed. |
| count | back to summary |
|---|---|
| private final int count | |
| hooks | back to summary |
|---|---|
| private final PreReceiveHook[] hooks | |
| PreReceiveHookChain | back to summary |
|---|---|
| private PreReceiveHookChain(PreReceiveHook[] hooks, int count) | |
| newChain | back to summary |
|---|---|
| public static PreReceiveHook newChain(List<? extends PreReceiveHook> hooks) Create a new hook chaining the given hooks together.
| |
| onPreReceive | back to summary |
|---|---|
| public void onPreReceive(ReceivePack rp, Collection<ReceiveCommand> commands) Implements org. Doc from org. Invoked just before commands are executed. See the class description for how this method can impact execution.
| |