Main changes since the initial version:
* The first patch converts the existing hook callers to use the new
find_hook() function.
* Information about what is to be pushed is now sent over a pipe rather
than passed as command-line parameters.
Aaron Schrab (3):
hooks: Add function to check if a hook exists
push: Add support for pre-push hooks
Add sample pre-push hook script
Documentation/githooks.txt | 29 +++++++++
builtin/commit.c | 6 +-
builtin/push.c | 1 +
builtin/receive-pack.c | 25 ++++----
run-command.c | 15 ++++-
run-command.h | 1 +
t/t5571-pre-push-hook.sh | 129 +++++++++++++++++++++++++++++++++++++++
templates/hooks--pre-push.sample | 53 ++++++++++++++++
transport.c | 60 ++++++++++++++++++
transport.h | 1 +
10 files changed, 300 insertions(+), 20 deletions(-)
create mode 100755 t/t5571-pre-push-hook.sh
create mode 100644 templates/hooks--pre-push.sample