author | Junio C Hamano <gitster@pobox.com> | |
Wed, 26 Aug 2009 23:39:10 +0000 (16:39 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 29 Aug 2009 05:39:17 +0000 (22:39 -0700) | ||
commit | a8563ec8515d87259590a7aad182922def8e2cf2 | |
tree | 09242a915fec4994c009002e374a8ca251f5b3dd | tree | snapshot |
parent | 68ea4741643d9e7c4bdac7cbbe6292edc69430ef | commit | diff |
upload-pack: add a trigger for post-upload-pack hook
After upload-pack successfully finishes its operation, post-upload-pack
hook can be 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.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
After upload-pack successfully finishes its operation, post-upload-pack
hook can be 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.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-upload-pack.txt | diff | blob | history | |
Documentation/githooks.txt | diff | blob | history | |
t/t5501-post-upload-pack.sh | [new file with mode: 0755] | blob |
upload-pack.c | diff | blob | history |