commit | 9684e44a07495ad6ff0fa57f1d0cb7479b72e453 | [log] [tgz] |
---|---|---|
author | Junio C Hamano <gitster@pobox.com> | Thu Sep 08 12:17:09 2011 -0700 |
committer | Junio C Hamano <gitster@pobox.com> | Mon Sep 12 16:40:06 2011 -0700 |
tree | ffafa0f223ad79234d24c4a9e095ee5515ea6785 | |
parent | 50963badbcfe2693d7a51ace3079c6b48ec52f01 [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>