summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9b58bfe)
raw | patch | inline | side by side (parent: 9b58bfe)
author | Christian Couder <chriscool@tuxfamily.org> | |
Fri, 2 May 2008 03:30:41 +0000 (05:30 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 3 May 2008 20:58:59 +0000 (13:58 -0700) |
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/hooks.txt | patch | blob | history |
index 44fbe58f20701291c0a43779fe0db826185f4322..1283ab4daac1cd929605a51f50d0a3b9beb11dc9 100644 (file)
--- a/Documentation/hooks.txt
+++ b/Documentation/hooks.txt
pre-applypatch
--------------
-This hook is invoked by `git-am`. It takes no parameter,
-and is invoked after the patch is applied, but before a commit
-is made. Exiting with non-zero status causes the working tree
-after application of the patch not committed.
+This hook is invoked by `git-am`. It takes no parameter, and is
+invoked after the patch is applied, but before a commit is made.
+
+If it exits with non-zero status, then the working tree will not be
+committed after applying the patch.
It can be used to inspect the current working tree and refuse to
make a commit if it does not pass certain test.