NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #1830 most downloaded on Packagist
Easily manage git hooks in your composer config
Latest stable
v3.0.0
Last release 2 years ago
no release in 18 months
Ships unpredictably
gaps range from 1 weeks to 1.9 years
Some releases are documented
notes for 8 of 31 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
32 releases · first in 2017
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Release new alpha version
Release new alpha version
The previous release had issues with hook definitions that did not have a command per line. Reverted for now, and will be revised later
The previous release had issues with hook definitions that did not have a command per line. Reverted for now, and will be revised later
Your coding agent can read these notes before it upgrades. Set up the MCP server →
When generating a new hook, the commands are now concatenated with && to ensure that the each command is only executed if the preceding one returns a
When generating a new hook, the commands are now concatenated with && to ensure that the each command is only executed if the preceding one returns a success (0) status code
Nothing published for this version
Older versions of git did not understand the git rev-parse --git-common-dir used to resolve the git dir, so a fallback was introduced.
git rev-parse --git-common-dir used to resolve the git dir, so a fallback was introduced.--ignore-lock modification was fixed, so there should be no issues for newcomers to an existing project anymore.Thanks to @devnix for pointing out these issues!
Nothing published for this version
git is now only invoked to resolve the git-dir if a --git-dir is not provided
git is now only invoked to resolve the git-dir if a --git-dir is not provided--lock-dir was added which resolves to the current working directory if not providedNothing published for this version
Running cghooks in a git worktree now correctly resolves the .git folder.
cghooks in a git worktree now correctly resolves the .git folder.cghooks is now aware of composer dev mode, and will not add or update hooks if run in production mode (--no-dev). This feature was REVERTEDNothing published for this version
All commands (besides the hook test ones) gained the ability to manage hooks globally with the --global option. Like: ```sh
All commands (besides the hook test ones) gained the ability to manage hooks globally with the --global option.
Like:
# Adds hooks in global directory (falls back to git config core.hooksPath and $COMPOSER_HOME)
cghooks add --global
# You can also directly specify the directory
cghooks add --global --git-dir /home/brainmaestro/.config/git_hooks
The update, list-hooks and remove commands work similarly.
This change was non-trivial because the application assumed it was always being run in the current directory. Took the opportunity for some cleanup as well.
For more complex hooks, they can be written as separate commands in an array. eg: `json "pre-commit": [ "echo committing as $(git config user.name)",
For more complex hooks, they can be written as separate commands in an array. eg:
"pre-commit": [
"echo committing as $(git config user.name)",
"php-cs-fixer .",
"phpunit"
]
Nothing published for this version
Files that are not necessary for the library are excluded with .gitattrributes
Files that are not necessary for the library are excluded with .gitattrributes
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.