Provid better installation method
gabyx opened this issue · comments
Maybe provide a way of installing an initial Githooks (will get updated afterwards by itself)
- by simple
curl <script> | bash
(like homebrew) method.
-
install.sh
bootstrapper which just installs Githooks - A install mode which does not setup either
--template-dir
norcore.hooksPath
meaning full local.
This is not soo trivial, one solution:-
Add a full
--use-manual-mode
to installer, which prohibits--template
and--use-core-hookspath
.
Store:githooks.useManualMode=true
which when set also disabled the same stuff on auto update. -
Does not set either
init.templateDir
norcore.hooksPath
.
Meaning also: Does not install hook run wrappers anywhere on the system. -
User can run
git hooks install
to install the run-wrappers in the repo as usual (no changes needed).
-
- Run
~/.githooks/bin/cli
orgit hooks
install in your repo, and your good to go. - Provide a brew package.
- Provide a linux package.