author | Junio C Hamano <gitster@pobox.com> | |
Thu, 8 Sep 2011 19:17:09 +0000 (12:17 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 12 Sep 2011 23:40:06 +0000 (16:40 -0700) | ||
commit | 9684e44a07495ad6ff0fa57f1d0cb7479b72e453 | |
tree | ffafa0f223ad79234d24c4a9e095ee5515ea6785 | tree | snapshot |
parent | 50963badbcfe2693d7a51ace3079c6b48ec52f01 | commit | diff |
refactor run_receive_hook()
Running a hook has to make complex set-up to establish web of
communication between child process and multiplexer, which is common
regardless of what kind of data is fed to the hook. Refactor the parts
that is specific to the data fed to the particular set of hooks from the
part that runs the hook, so that the code can be reused to drive hooks
that take different kind of data.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Running a hook has to make complex set-up to establish web of
communication between child process and multiplexer, which is common
regardless of what kind of data is fed to the hook. Refactor the parts
that is specific to the data fed to the particular set of hooks from the
part that runs the hook, so that the code can be reused to drive hooks
that take different kind of data.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/receive-pack.c | diff | blob | history |