Skip to content

Commit

Permalink
Update README with clarification about ad hoc hooks
Browse files Browse the repository at this point in the history
A question in #696 suggests we need to add additional clarification.
  • Loading branch information
sds committed Dec 15, 2019
1 parent dd9ba2a commit d1648df
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -661,6 +661,12 @@ executes the command and appends any arguments and standard input stream that
would have been passed to the regular hook. The hook passes or fails based
on the exit status of the command.

The script is executed as if Git were calling the hook directly. If you want
to understand which arguments are passed to the script depending on the type
of hook, see the [git-hooks documentation][GHD].

[GHD]: https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks

## Security

While Overcommit can make managing Git hooks easier and more convenient,
Expand Down

0 comments on commit d1648df

Please sign in to comment.