Skip to content

Commit df01e7c

Browse files
committed
Merge branch 'maint'
* maint: git-pull: do not mention --quiet and --verbose twice githooks.txt: put hooks into subsections
2 parents b8711f5 + 90e4311 commit df01e7c

File tree

2 files changed

+20
-15
lines changed

2 files changed

+20
-15
lines changed

Documentation/fetch-options.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
ifndef::git-pull[]
12
-q::
23
--quiet::
34
Pass --quiet to git-fetch-pack and silence any other internally
@@ -6,6 +7,7 @@
67
-v::
78
--verbose::
89
Be verbose.
10+
endif::git-pull[]
911

1012
-a::
1113
--append::

Documentation/githooks.txt

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ executable by default.
2626

2727
This document describes the currently defined hooks.
2828

29+
HOOKS
30+
-----
31+
2932
applypatch-msg
30-
--------------
33+
~~~~~~~~~~~~~~
3134

3235
This hook is invoked by 'git-am' script. It takes a single
3336
parameter, the name of the file that holds the proposed commit
@@ -43,7 +46,7 @@ The default 'applypatch-msg' hook, when enabled, runs the
4346
'commit-msg' hook, if the latter is enabled.
4447

4548
pre-applypatch
46-
--------------
49+
~~~~~~~~~~~~~~
4750

4851
This hook is invoked by 'git-am'. It takes no parameter, and is
4952
invoked after the patch is applied, but before a commit is made.
@@ -58,7 +61,7 @@ The default 'pre-applypatch' hook, when enabled, runs the
5861
'pre-commit' hook, if the latter is enabled.
5962

6063
post-applypatch
61-
---------------
64+
~~~~~~~~~~~~~~~
6265

6366
This hook is invoked by 'git-am'. It takes no parameter,
6467
and is invoked after the patch is applied and a commit is made.
@@ -67,7 +70,7 @@ This hook is meant primarily for notification, and cannot affect
6770
the outcome of 'git-am'.
6871

6972
pre-commit
70-
----------
73+
~~~~~~~~~~
7174

7275
This hook is invoked by 'git-commit', and can be bypassed
7376
with `\--no-verify` option. It takes no parameter, and is
@@ -84,7 +87,7 @@ variable `GIT_EDITOR=:` if the command will not bring up an editor
8487
to modify the commit message.
8588

8689
prepare-commit-msg
87-
------------------
90+
~~~~~~~~~~~~~~~~~~
8891

8992
This hook is invoked by 'git-commit' right after preparing the
9093
default log message, and before the editor is started.
@@ -109,7 +112,7 @@ The sample `prepare-commit-msg` hook that comes with git comments
109112
out the `Conflicts:` part of a merge's commit message.
110113

111114
commit-msg
112-
----------
115+
~~~~~~~~~~
113116

114117
This hook is invoked by 'git-commit', and can be bypassed
115118
with `\--no-verify` option. It takes a single parameter, the
@@ -126,7 +129,7 @@ The default 'commit-msg' hook, when enabled, detects duplicate
126129
"Signed-off-by" lines, and aborts the commit if one is found.
127130

128131
post-commit
129-
-----------
132+
~~~~~~~~~~~
130133

131134
This hook is invoked by 'git-commit'. It takes no
132135
parameter, and is invoked after a commit is made.
@@ -135,14 +138,14 @@ This hook is meant primarily for notification, and cannot affect
135138
the outcome of 'git-commit'.
136139

137140
pre-rebase
138-
----------
141+
~~~~~~~~~~
139142

140143
This hook is called by 'git-rebase' and can be used to prevent a branch
141144
from getting rebased.
142145

143146

144147
post-checkout
145-
-----------
148+
~~~~~~~~~~~~~
146149

147150
This hook is invoked when a 'git-checkout' is run after having updated the
148151
worktree. The hook is given three parameters: the ref of the previous HEAD,
@@ -160,7 +163,7 @@ differences from the previous HEAD if different, or set working dir metadata
160163
properties.
161164

162165
post-merge
163-
-----------
166+
~~~~~~~~~~
164167

165168
This hook is invoked by 'git-merge', which happens when a 'git-pull'
166169
is done on a local repository. The hook takes a single parameter, a status
@@ -175,7 +178,7 @@ for an example of how to do this.
175178

176179
[[pre-receive]]
177180
pre-receive
178-
-----------
181+
~~~~~~~~~~~
179182

180183
This hook is invoked by 'git-receive-pack' on the remote repository,
181184
which happens when a 'git-push' is done on a local repository.
@@ -204,7 +207,7 @@ for the user.
204207

205208
[[update]]
206209
update
207-
------
210+
~~~~~~
208211

209212
This hook is invoked by 'git-receive-pack' on the remote repository,
210213
which happens when a 'git-push' is done on a local repository.
@@ -247,7 +250,7 @@ unannotated tags to be pushed.
247250

248251
[[post-receive]]
249252
post-receive
250-
------------
253+
~~~~~~~~~~~~
251254

252255
This hook is invoked by 'git-receive-pack' on the remote repository,
253256
which happens when a 'git-push' is done on a local repository.
@@ -277,7 +280,7 @@ emails.
277280

278281
[[post-update]]
279282
post-update
280-
-----------
283+
~~~~~~~~~~~
281284

282285
This hook is invoked by 'git-receive-pack' on the remote repository,
283286
which happens when a 'git-push' is done on a local repository.
@@ -337,7 +340,7 @@ kind string:
337340
for all our refs with "want"), or "fetch" (otherwise).
338341

339342
pre-auto-gc
340-
-----------
343+
~~~~~~~~~~~
341344

342345
This hook is invoked by 'git-gc --auto'. It takes no parameter, and
343346
exiting with non-zero status from this script causes the 'git-gc --auto'

0 commit comments

Comments
 (0)