~ubuntu-branches/ubuntu/intrepid/git-core/intrepid-updates

« back to all changes in this revision

Viewing changes to Documentation/hooks.txt

  • Committer: Package Import Robot
  • Author(s): Gerrit Pape
  • Date: 2007-04-22 13:31:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20070422133105-xg8fnm18r2cxcbg1
Tags: upstream-1.5.1.2
ImportĀ upstreamĀ versionĀ 1.5.1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
Hooks are little scripts you can place in `$GIT_DIR/hooks`
5
5
directory to trigger action at certain points.  When
6
 
`git-init-db` is run, a handful example hooks are copied in the
 
6
`git-init` is run, a handful example hooks are copied in the
7
7
`hooks` directory of the new repository, but by default they are
8
8
all disabled.  To enable a hook, make it executable with `chmod +x`.
9
9
 
90
90
This hook is meant primarily for notification, and cannot affect
91
91
the outcome of `git-commit`.
92
92
 
93
 
The default 'post-commit' hook, when enabled, demonstrates how to
94
 
send out a commit notification e-mail.
95
 
 
96
93
update
97
94
------
98
95
 
126
123
implement access control which is finer grained than the one
127
124
based on filesystem group.
128
125
 
129
 
The standard output of this hook is sent to `/dev/null`; if you
 
126
The standard output of this hook is sent to `stderr`, so if you
130
127
want to report something to the `git-send-pack` on the other end,
131
 
you can redirect your output to your `stderr`.
 
128
you can simply `echo` your messages.
132
129
 
 
130
The default 'update' hook, when enabled, demonstrates how to
 
131
send out a notification e-mail.
133
132
 
134
133
post-update
135
134
-----------