Module branchless::commands::hooks[][src]

Callbacks for Git hooks.

Git uses “hooks” to run user-defined scripts after certain events. We extensively use these hooks to track user activity and e.g. decide if a commit should be considered “hidden”.

The hooks are installed by the branchless init command. This module contains the implementations for the hooks.

Functions

hook_post_checkout

Handle Git’s post-checkout hook.

hook_post_commit

Handle Git’s post-commit hook.

hook_post_rewrite

Handle Git’s post-rewrite hook.

hook_reference_transaction

Handle Git’s reference-transaction hook.