Skip to content

pre-push hook support

Aaron Schrab git 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 7 repliesIn review
  2. v14 patches 6 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3hooks: Add function to check if a hook existsbuiltin/commit.c builtin/receive-pack.c run-command.c +1 more+27 -200 replies
2/3push: Add support for pre-push hooksDocumentation/githooks.txt builtin/push.c t/t5571-pre-push-hook.sh +2 more+220 -03 replies
3/3Add sample pre-push hook scripttemplates/hooks--pre-push.sample+53 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] pre-push hook support

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
Signature · 1 line
1.8.1.340.g425b78d