gabyx / Githooks

🦎 Githooks: per-repo and shared Git hooks with version control and auto update. [✩Star] if you're using it!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 nor core.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 nor core.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 or git hooks install in your repo, and your good to go.
  • Provide a brew package.
  • Provide a linux package.
     

Solved by #124 #121 .

Brew and linux package is difficult as Githooks does its own update logic and must be deactivated for that...