Skip to content

Add pre-commit git hook system

Rob Nelson requested to merge pull/11788/GitHooks into Bleeding-Edge

Created by: ComicIronic

Git hooks are shell scripts that act at certain stages of the git VCS process to help do whatever you feel like, such as auto formatting. This sets up a version-controlled folder for our hooks (tools/git-hooks) and splits the pre-commit hook into a script that loops through a directory, which allows for multiple independent scripts for a single hook.

tl:dr; this is how we're going to be automating formatting standards.

TODO:

  • Add batch equivalent of install-hooks

Merge request reports