aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-10-03 03:03:40 -0700
committerJunio C Hamano <gitster@pobox.com>2007-10-03 03:03:40 -0700
commite56f6359ffd22176c2a31d4d7484b9a5880f885b (patch)
tree852deaffc5fdc262ed8173212f0c7ab7996d8135 /Documentation
parent5e5b2b98c844c791c87a3a084d7748b9d6888a0a (diff)
parent1abbe475ff17349839f72a024cf665b8ec86473f (diff)
downloadgit-e56f6359ffd22176c2a31d4d7484b9a5880f885b.tar.gz
git-e56f6359ffd22176c2a31d4d7484b9a5880f885b.tar.xz
Merge branch 'je/hooks'
* je/hooks: post-checkout hook, tests, and docs
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/hooks.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/Documentation/hooks.txt b/Documentation/hooks.txt
index 58b954759..f110162b0 100644
--- a/Documentation/hooks.txt
+++ b/Documentation/hooks.txt
@@ -87,6 +87,20 @@ parameter, and is invoked after a commit is made.
This hook is meant primarily for notification, and cannot affect
the outcome of `git-commit`.
+post-checkout
+-----------
+
+This hook is invoked when a `git-checkout` is run after having updated the
+worktree. The hook is given three parameters: the ref of the previous HEAD,
+the ref of the new HEAD (which may or may not have changed), and a flag
+indicating whether the checkout was a branch checkout (changing branches,
+flag=1) or a file checkout (retrieving a file from the index, flag=0).
+This hook cannot affect the outcome of `git-checkout`.
+
+This hook can be used to perform repository validity checks, auto-display
+differences from the previous HEAD if different, or set working dir metadata
+properties.
+
post-merge
-----------