dulwich.hooks.ShellHook(Hook)
class documentationdulwich.hooks
(View In Hierarchy)
Known subclasses: dulwich.hooks.CommitMsgShellHook, dulwich.hooks.PostCommitShellHook, dulwich.hooks.PreCommitShellHook
Hook by executable file
Implements standard githooks(5) [0]:
[0] http://www.kernel.org/pub/software/scm/git/docs/githooks.html
Parameters | name | name of hook for error messages |
path | absolute path to executable file | |
numparam | number of requirements parameters | |
pre_exec_callback | closure for setup before execution Defaults to None. Takes in the variable argument list from the execute functions and returns a modified argument list for the shell hook. | |
post_exec_callback | closure for cleanup after execution Defaults to None. Takes in a boolean for hook success and the modified argument list and returns the final hook return value if applicable | |
cwd | working directory to switch to when executing the hook |