composer-git-hooks
composer-git-hooks copied to clipboard
cghooks remove creates a lock file even if none existed
Adding the hooks via cghooks add -l
, does not - as expected - create a cghooks.lock
file. I'm using cghooks 2.8.5 while reproducing this problem.
However, running cghooks remove
creates one, and there's no -l
or similar option to prevent this from being created.
Hi @jcnventura this seems like a missing feature. Are you willing to create a PR for this? It should be a relatively simple change to add the same option to remove
Sorry for a stupid question, but what is the lock file even needed for? To delete only hooks that are added by the package, and leave all the rest? If I don't have any other hooks, can I use it without the lock file?