class documentation

class UpdateShellHook(ShellHook):

Constructor: UpdateShellHook(controldir)

View In Hierarchy

update shell hook.

Method __init__ Initialize update hook.
Method execute Execute the update hook for a single ref.
Instance Variable controldir Undocumented

Inherited from ShellHook:

Instance Variable cwd Undocumented
Instance Variable filepath Undocumented
Instance Variable name Undocumented
Instance Variable numparam Undocumented
Instance Variable post_exec_callback Undocumented
Instance Variable pre_exec_callback Undocumented
def __init__(self, controldir: str):

Initialize update hook.

Parameters
controldir:strPath to the git control directory (.git)
def execute(self, ref_name: bytes, old_sha: bytes, new_sha: bytes) -> tuple[bytes, bytes]:

Execute the update hook for a single ref.

Parameters
ref_name:bytesName of the reference being updated
old_sha:bytesOld SHA of the reference
new_sha:bytesNew SHA of the reference
Returns
tuple[bytes, bytes]Tuple of (stdout, stderr) from hook execution
Raises
HookErrorIf hook execution fails (exits with non-zero status)
controldir =

Undocumented