Implemented init, pre-commit, pre-push, and prepare-commit-message Git hooks within the new Deno module lib/universal/git-hooks.ts.
Migrated existing Bash-based .githooks/prepare-commit-message logic into the Deno module, enhancing cross-platform compatibility and maintainability.
Developed a Deno-based initialization process for Git hooks, facilitating the automatic setup of the .githooks directory and associated scripts.
Incorporated environment variable GITHOOK_BYPASS checks to offer developers an easy way to bypass hooks during development if needed.
Usage
To set up the Git hooks in your project, run:
deno run --allow-write=.githooks https://raw.githubusercontent.com/netspective-labs/sql-aide/vX.Y.Z/lib/universal/git-hooks.ts init
This command initializes the .githooks directory and configures the hooks to use our Deno-based scripts.
Changes
deno run --allow-write=.githooks https://raw.githubusercontent.com/netspective-labs/sql-aide/vX.Y.Z/lib/universal/git-hooks.ts init
This command initializes the .githooks directory and configures the hooks to use our Deno-based scripts.