PreReceiveHook
Executes the pre-receive hook before references are updated.Request (Stream)
The repository where the hook is executed
Environment variables to pass to the hook
Data to pass to the hook via stdin
Git push options to pass to the hook
Response (Stream)
Output from the hook’s stdout
Output from the hook’s stderr
The exit status of the hook
PostReceiveHook
Executes the post-receive hook after references are updated.Request (Stream)
The repository where the hook is executed
Environment variables to pass to the hook
Data to pass to the hook via stdin
Git push options to pass to the hook
Response (Stream)
Output from the hook’s stdout
Output from the hook’s stderr
The exit status of the hook
UpdateHook
Executes the update hook when a single reference is being updated.Request
The repository where the hook is executed
Environment variables to pass to the hook
The reference being updated
The old value of the reference
The new value of the reference
Response (Stream)
Output from the hook’s stdout
Output from the hook’s stderr
The exit status of the hook
ReferenceTransactionHook
Executes the reference-transaction hook during different phases of a reference transaction.Request (Stream)
The repository where the hook is executed
Environment variables to pass to the hook
Data to pass to the hook via stdin
The state of the reference transaction. Values:
PREPARED, COMMITTED, ABORTEDResponse (Stream)
Output from the hook’s stdout
Output from the hook’s stderr
The exit status of the hook
PackObjectsHook
Executes the pack-objects hook.Request (Stream)
The repository where the hook is executed
Arguments passed to the pack-objects hook, without the leading “git”
Data for consumption by git-pack-objects
Response (Stream)
Packfile data
Progress messages (such as “Enumerating objects …”)
PackObjectsHookWithSidechannel
Optimized version of PackObjectsHook that uses a Unix socket side channel for improved performance.Request
The repository where the hook is executed
Arguments passed to the pack-objects hook, without the leading “git”