summaryrefslogtreecommitdiffstats
path: root/man5/githooks.5
diff options
context:
space:
mode:
Diffstat (limited to 'man5/githooks.5')
-rw-r--r--man5/githooks.510
1 files changed, 5 insertions, 5 deletions
diff --git a/man5/githooks.5 b/man5/githooks.5
index 594a137c5..aad7bdaea 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: 2024-02-06
+.\" Date: 2024-02-08
.\" Manual: Git Manual
-.\" Source: Git 2.43.0.561.g235986be82
+.\" Source: Git 2.43.0.581.g5216f8f5c4
.\" Language: English
.\"
-.TH "GITHOOKS" "5" "2024\-02\-06" "Git 2\&.43\&.0\&.561\&.g235986" "Git Manual"
+.TH "GITHOOKS" "5" "2024\-02\-08" "Git 2\&.43\&.0\&.581\&.g5216f8" "Git Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
@@ -147,7 +147,7 @@ Information about what is to be pushed is provided on the hook\(cqs standard inp
.RS 4
.\}
.nf
-<local ref> SP <local object name> SP <remote ref> SP <remote object name> LF
+<local\-ref> SP <local\-object\-name> SP <remote\-ref> SP <remote\-object\-name> LF
.fi
.if n \{\
.RE
@@ -165,7 +165,7 @@ refs/heads/master 67890 refs/heads/foreign 12345
.RE
.\}
.sp
-although the full object name would be supplied\&. If the foreign ref does not yet exist the \fB<remote object name>\fR will be the all\-zeroes object name\&. If a ref is to be deleted, the \fB<local ref>\fR will be supplied as \fB(delete)\fR and the \fB<local object name>\fR will be the all\-zeroes object name\&. If the local commit was specified by something other than a name which could be expanded (such as \fBHEAD~\fR, or an object name) it will be supplied as it was originally given\&.
+although the full object name would be supplied\&. If the foreign ref does not yet exist the \fB<remote\-object\-name>\fR will be the all\-zeroes object name\&. If a ref is to be deleted, the \fB<local\-ref>\fR will be supplied as \fB(delete)\fR and the \fB<local\-object\-name>\fR will be the all\-zeroes object name\&. If the local commit was specified by something other than a name which could be expanded (such as \fBHEAD~\fR, or an object name) it will be supplied as it was originally given\&.
.sp
If this hook exits with a non\-zero status, \fBgit push\fR will abort without pushing anything\&. Information about why the push is rejected may be sent to the user by writing to standard error\&.
.SS "pre\-receive"