v2 / vlib / v / help / other / git-fmt-hook.txt
11 lines · 8 sloc · 339 bytes · 09aa031b910f75151bbbc98614d37b6124672a66
Raw
Tool to install/remove pre-commit Git hook

Usage:
  v git-fmt-hook [SUBCMD]

The pre-commit Git hook will check/format V files before commit with 'v fmt' command.

SUBCMD:
  status : get status for Git pre-commit hook .git/hooks/pre-commit
  install: install Git pre-commit hook .git/hooks/pre-commit
  remove : remove Git pre-commit hook