Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ One of the last things you want is to raise the barrier to contributing to your
* pre-applypatch
* post-applypatch
* pre-commit
* pre-merge-commit
* prepare-commit-msg
* commit-msg
* post-commit
Expand All @@ -72,8 +73,13 @@ One of the last things you want is to raise the barrier to contributing to your
* update
* post-receive
* post-update
* push-to-checkout
* pre-auto-gc
* post-rewrite
* sendemail-validate
* fsmonitor-watchman
* p4-pre-submit
* post-index-change

## Common Issues

Expand Down
21 changes: 1 addition & 20 deletions lib/install.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,9 @@
const fs = require('fs')
const resolve = require('path').resolve
const findup = require('findup')
const hooks = require('git-hooks-list')
const template = require('./hook.template')

const hooks = [
'applypatch-msg',
'pre-applypatch',
'post-applypatch',
'pre-commit',
'prepare-commit-msg',
'commit-msg',
'post-commit',
'pre-rebase',
'post-checkout',
'post-merge',
'pre-push',
'pre-receive',
'update',
'post-receive',
'post-update',
'pre-auto-gc',
'post-rewrite',
]

function installHooks() {
const gitRoot = findGitRoot()
if (gitRoot) {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
},
"dependencies": {
"findup": "0.1.5",
"git-hooks-list": "2.0.0",
"lodash.clone": "4.5.0",
"manage-path": "2.0.0",
"opt-cli": "1.6.0",
Expand Down