Code

Refactor run_update_hook to be more useful
authorShawn O. Pearce <spearce@spearce.org>
Wed, 7 Mar 2007 21:51:09 +0000 (16:51 -0500)
committerJunio C Hamano <junkio@cox.net>
Wed, 7 Mar 2007 22:45:43 +0000 (14:45 -0800)
commitc8dd277109c1cdb9422e474e6bd6e32a382291a0
treec05ff5136f9af1a841a002e90a3bb72c361216d1
parent3e6e152c7496c1acd298ec2b916d62acb56f11c0
Refactor run_update_hook to be more useful

This is a simple refactoring of run_update_hook to allow the function
to be passed the name of the hook it runs and also to build the
argument list from a list of struct commands, rather than just one
struct command.

The refactoring is to support new pre-receive and post-receive
hooks that will be given the entire list of struct commands,
rather than just one struct command.  These new hooks will follow
in another patch.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
receive-pack.c