This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Hooks

Git hooks

    The hook installer resolves the repository’s effective hooks directory through Git. This supports linked worktrees and repositories that configure core.hooksPath.

    The installed pre-commit hook requires the Bazelisk-managed bazel on PATH.

    Install or update the checked-in hooks:

    bazel run //:write_git_hooks
    

    Verify that every hook is current and executable without changing it:

    bazel run //:write_git_hooks -- test