From: "Scott Chacon" <schacon@gmail.com>
To: "git list" <git@vger.kernel.org>
Cc: "Junio C Hamano" <gitster@pobox.com>
Subject: [PATCH] Updated githooks docs to cover pre-push script
Date: Tue, 19 Aug 2008 12:07:18 -0700 [thread overview]
Message-ID: <d411cc4a0808191207j28380749i922ae9981f3e32dd@mail.gmail.com> (raw)
The new entry covers how the pre-push script runs and outlines
possible use-cases for the script.
Signed-off-by: Scott Chacon <schacon@gmail.com>
---
Documentation/githooks.txt | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/Documentation/githooks.txt b/Documentation/githooks.txt
index 046a2a7..939181f 100644
--- a/Documentation/githooks.txt
+++ b/Documentation/githooks.txt
@@ -299,6 +299,18 @@ This hook is invoked by 'git-gc --auto'. It takes
no parameter, and
exiting with non-zero status from this script causes the 'git-gc --auto'
to abort.
+pre-push
+-----------
+
+This hook is invoked by 'git push'. It takes no parameter, and
+exiting with non-zero status from this script causes the 'git push'
+command to abort.
+
+This script is useful for self-enforcing policies, such as running a script
+that checks for code-compliance, running automated tests, etc. You can
+use this script to help ensure that your pushes are sane in an automatic
+fashion.
+
GIT
---
Part of the linkgit:git[1] suite
--
1.6.0.GIT
reply other threads:[~2008-08-19 19:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d411cc4a0808191207j28380749i922ae9981f3e32dd@mail.gmail.com \
--to=schacon@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).