summaryrefslogtreecommitdiffstats
path: root/man5/githooks.5
diff options
context:
space:
mode:
Diffstat (limited to 'man5/githooks.5')
-rw-r--r--man5/githooks.516
1 files changed, 8 insertions, 8 deletions
diff --git a/man5/githooks.5 b/man5/githooks.5
index 3a4ed491c..ecba0554f 100644
--- a/man5/githooks.5
+++ b/man5/githooks.5
@@ -2,12 +2,12 @@
.\" Title: githooks
.\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
-.\" Date: 2023-10-20
+.\" Date: 2023-10-23
.\" Manual: Git Manual
-.\" Source: Git 2.42.0.424.gceadf0f3cf
+.\" Source: Git 2.42.0.482.g2e8e77cbac
.\" Language: English
.\"
-.TH "GITHOOKS" "5" "2023\-10\-20" "Git 2\&.42\&.0\&.424\&.gceadf0" "Git Manual"
+.TH "GITHOOKS" "5" "2023\-10\-23" "Git 2\&.42\&.0\&.482\&.g2e8e77" "Git Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
@@ -73,7 +73,7 @@ This hook is invoked by \fBgit-am\fR(1)\&. It takes no parameter, and is invoked
.sp
If it exits with non\-zero status, then the working tree will not be committed after applying the patch\&.
.sp
-It can be used to inspect the current working tree and refuse to make a commit if it does not pass certain test\&.
+It can be used to inspect the current working tree and refuse to make a commit if it does not pass certain tests\&.
.sp
The default \fIpre\-applypatch\fR hook, when enabled, runs the \fIpre\-commit\fR hook, if the latter is enabled\&.
.SS "post\-applypatch"
@@ -107,7 +107,7 @@ It takes one to three parameters\&. The first is the name of the file that conta
.sp
If the exit status is non\-zero, \fBgit commit\fR will abort\&.
.sp
-The purpose of the hook is to edit the message file in place, and it is not suppressed by the \fB\-\-no\-verify\fR option\&. A non\-zero exit means a failure of the hook and aborts the commit\&. It should not be used as replacement for pre\-commit hook\&.
+The purpose of the hook is to edit the message file in place, and it is not suppressed by the \fB\-\-no\-verify\fR option\&. A non\-zero exit means a failure of the hook and aborts the commit\&. It should not be used as a replacement for the pre\-commit hook\&.
.sp
The sample \fBprepare\-commit\-msg\fR hook that comes with Git removes the help message found in the commented portion of the commit template\&.
.SS "commit\-msg"
@@ -242,7 +242,7 @@ In an environment that restricts the users\*(Aq access only to git commands over
.sp
Both standard output and standard error output are forwarded to \fBgit send\-pack\fR on the other end, so you can simply \fBecho\fR messages for the user\&.
.sp
-The default \fIupdate\fR hook, when enabled\(emand with \fBhooks\&.allowunannotated\fR config option unset or set to false\(emprevents unannotated tags to be pushed\&.
+The default \fIupdate\fR hook, when enabled\(emand with \fBhooks\&.allowunannotated\fR config option unset or set to false\(emprevents unannotated tags from being pushed\&.
.SS "proc\-receive"
.sp
This hook is invoked by \fBgit-receive-pack\fR(1)\&. If the server has set the multi\-valued config variable \fBreceive\&.procReceiveRefs\fR, and the commands sent to \fIreceive\-pack\fR have matching reference names, these commands will be executed by this hook, instead of by the internal \fBexecute_commands()\fR function\&. This hook is responsible for updating the relevant references and reporting the results back to \fIreceive\-pack\fR\&.
@@ -284,12 +284,12 @@ S: flush\-pkt
.RS 4
.\}
.nf
-# Receive result from the hook\&.
+# Receive results from the hook\&.
# OK, run this command successfully\&.
H: PKT\-LINE(ok <ref>)
# NO, I reject it\&.
H: PKT\-LINE(ng <ref> <reason>)
-# Fall through, let \*(Aqreceive\-pack\*(Aq to execute it\&.
+# Fall through, let \*(Aqreceive\-pack\*(Aq execute it\&.
H: PKT\-LINE(ok <ref>)
H: PKT\-LINE(option fall\-through)
# OK, but has an alternate reference\&. The alternate reference name