public class KetchPreReceive extends Object implements PreReceiveHook
Install an instance on
capture the commands and other connection state and relay them through the
KetchLeader, allowing the leader to
gain consensus about the new reference state.
|Constructor and Description|
Construct a hook executing updates through a
|Modifier and Type||Method and Description|
Invoked just before commands are executed.
public KetchPreReceive(KetchLeader leader)
leader- leader for this repository.
public void onPreReceive(ReceivePack rp, Collection<ReceiveCommand> cmds)
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.
cmds- unmodifiable set of valid commands still pending execution. May be the empty set.
Copyright © 2018 Eclipse JGit Project. All rights reserved.