author | Junio C Hamano <gitster@pobox.com> | |
Mon, 7 Sep 2009 22:45:48 +0000 (15:45 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 7 Sep 2009 22:45:48 +0000 (15:45 -0700) |
* maint:
git-pull: do not mention --quiet and --verbose twice
githooks.txt: put hooks into subsections
git-pull: do not mention --quiet and --verbose twice
githooks.txt: put hooks into subsections
1 | 2 | |||
---|---|---|---|---|
Documentation/githooks.txt | patch | | diff1 | | diff2 | | blob | history |
diff --cc Documentation/githooks.txt
index c308d2943c11e46fe781724a5fef04fb567a791f,acc408d7e621a5055322ff4157c43734a20ebce8..79f633e837180c657f9a7867360363e7137496da
'git-send-pack' on the other end, so you can simply `echo` messages
for the user.
+post-upload-pack
+----------------
+
+After upload-pack successfully finishes its operation, this hook is called
+for logging purposes.
+
+The hook is passed various pieces of information, one per line, from its
+standard input. Currently the following items can be fed to the hook, but
+more types of information may be added in the future:
+
+want SHA-1::
+ 40-byte hexadecimal object name the client asked to include in the
+ resulting pack. Can occur one or more times in the input.
+
+have SHA-1::
+ 40-byte hexadecimal object name the client asked to exclude from
+ the resulting pack, claiming to have them already. Can occur zero
+ or more times in the input.
+
+time float::
+ Number of seconds spent for creating the packfile.
+
+size decimal::
+ Size of the resulting packfile in bytes.
+
+kind string:
+ Either "clone" (when the client did not give us any "have", and asked
+ for all our refs with "want"), or "fetch" (otherwise).
+
pre-auto-gc
- -----------
+ ~~~~~~~~~~~
This hook is invoked by 'git-gc --auto'. It takes no parameter, and
exiting with non-zero status from this script causes the 'git-gc --auto'