summaryrefslogtreecommitdiffstats
path: root/githooks.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-04-25 19:12:27 +0900
committerJunio C Hamano <gitster@pobox.com>2019-04-25 19:12:27 +0900
commit2ba14716c3b8d8081480683846aefbc1d2abe0db (patch)
tree26796b7b6c67263fc7a895282813fba914033b2c /githooks.html
parentb551377cb5b53a9d5872eeaa46cd5b3a0a661435 (diff)
downloadgit-htmldocs-2ba14716c3b8d8081480683846aefbc1d2abe0db.tar.gz
Autogenerated HTML docs for v2.21.0-777-g83232e
Diffstat (limited to 'githooks.html')
-rw-r--r--githooks.html16
1 files changed, 15 insertions, 1 deletions
diff --git a/githooks.html b/githooks.html
index b081bd74e..e4b4b5f17 100644
--- a/githooks.html
+++ b/githooks.html
@@ -1176,6 +1176,20 @@ all files and folders.</p></div>
from standard input. Exiting with non-zero status from this script prevent
<code>git-p4 submit</code> from launching. Run <code>git-p4 submit --help</code> for details.</p></div>
</div>
+<div class="sect2">
+<h3 id="_post_index_change">post-index-change</h3>
+<div class="paragraph"><p>This hook is invoked when the index is written in read-cache.c
+do_write_locked_index.</p></div>
+<div class="paragraph"><p>The first parameter passed to the hook is the indicator for the
+working directory being updated. "1" meaning working directory
+was updated or "0" when the working directory was not updated.</p></div>
+<div class="paragraph"><p>The second parameter passed to the hook is the indicator for whether
+or not the index was updated and the skip-worktree bit could have
+changed. "1" meaning skip-worktree bits could have been updated
+and "0" meaning they were not.</p></div>
+<div class="paragraph"><p>Only one parameter should be set to "1" when the hook runs. The hook
+running passing "1", "1" should not be possible.</p></div>
+</div>
</div>
</div>
<div class="sect1">
@@ -1189,7 +1203,7 @@ from standard input. Exiting with non-zero status from this script prevent
<div id="footer">
<div id="footer-text">
Last updated
- 2019-03-07 12:16:20 JST
+ 2019-04-25 19:09:28 JST
</div>
</div>
</body>