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 <psusi@ubuntu.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jonathan Nieder committed
Feb 24, 2014 at 12:38 UTC
0e3d40c60d9ae14ddc9f525ce4db3cbc0bde5278
1 file changed
+5
Documentation/git-am.txt
+5
@@ -189,6 +189,11 @@ commits, like running 'git am' on the wrong branch or an error in the
189
commits that is more easily fixed by changing the mailbox (e.g.
190
errors in the "From:" lines).
191
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.
197
198
SEE ALSO
199
--------