Ghost/.github
Hannah Wolfe e9a537004b Added pre-commit hook to handle submodules (#8302)
refs #8235

Usage:
- for existing development setups: `grunt symlink` (will create the pre-commit symlink)
- for fresh development setups: `npm run init` (symlinking happens as part of the typical set up)

-  Added pre-commit hook to handle submodules
  - Checks to see if there are any submodules about to be committed
  - Output matches closely to `git st` to make it easy to read
  - Requires interaction from the committer to accept that this really should be committed
-  Use grunt symlink to register githooks
  - Grunt symlink will make a link to the pre-commit hook
  - It ONLY does this if there isn't already a pre-commit hook, so won't overwrite anything
  - It does this as part of npm run init, not grunt init, because a release repo would NEVER want this
  - This is a dev tool, that configures the repo for development
2017-04-13 08:26:48 +01:00
..
hooks Added pre-commit hook to handle submodules (#8302) 2017-04-13 08:26:48 +01:00
CONTRIBUTING.md Fix broken troubleshooting link in contributing.md (#7481) 2016-10-04 18:04:18 +01:00
ISSUE_TEMPLATE.md Adding GitHub issue & PR templates 2016-02-18 09:50:09 +00:00
PULL_REQUEST_TEMPLATE.md Adding GitHub issue & PR templates 2016-02-18 09:50:09 +00:00