refactor run_receive_hook()
authorJunio C Hamano <gitster@pobox.com>
Thu, 8 Sep 2011 19:17:09 +0000 (12:17 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Sep 2011 23:40:06 +0000 (16:40 -0700)
commit9684e44a07495ad6ff0fa57f1d0cb7479b72e453
treeffafa0f223ad79234d24c4a9e095ee5515ea6785
parent50963badbcfe2693d7a51ace3079c6b48ec52f01
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>
builtin/receive-pack.c