Skip to content

Commit 0e3d40c

Browse files
jrngitster
authored andcommitted
am doc: add a pointer to relevant hooks
It is not obvious when looking at a new command what hooks will affect it. Add a HOOKS section to the git-am(1) page, imitating git-commit(1), to make it easier for people to discover e.g. the applypatch-msg hook that can implement a custom subject-mangling strategy (e.g., removing a "bug #nnnn:" prefix introduced by a bug tracker). Reported-by: Phillip Susi <[email protected]> Signed-off-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5f95c9f commit 0e3d40c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Documentation/git-am.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,11 @@ commits, like running 'git am' on the wrong branch or an error in the
189189
commits that is more easily fixed by changing the mailbox (e.g.
190190
errors in the "From:" lines).
191191

192+
HOOKS
193+
-----
194+
This command can run `applypatch-msg`, `pre-applypatch`,
195+
and `post-applypatch` hooks. See linkgit:githooks[5] for more
196+
information.
192197

193198
SEE ALSO
194199
--------

0 commit comments

Comments
 (0)