author | Stephan Beyer <s-beyer@gmx.net> | |
Fri, 16 Jan 2009 19:09:59 +0000 (20:09 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 18 Jan 2009 01:16:24 +0000 (17:16 -0800) | ||
commit | ae98a0089ff7f7641ed15ddd595797de56eb49f1 | |
tree | 8f499d3252ce9c863bdca2ace275b00918b83514 | tree | snapshot |
parent | 2292ce4785170d5502c4c9ea860bb73c6379f029 | commit | diff |
Move run_hook() from builtin-commit.c into run-command.c (libgit)
A function that runs a hook is used in several Git commands.
builtin-commit.c has the one that is most general for cases without
piping. The one in builtin-gc.c prints some useful warnings.
This patch moves a merged version of these variants into libgit and
lets the other builtins use this libified run_hook().
The run_hook() function used in receive-pack.c feeds the standard
input of the pre-receive or post-receive hooks. This function is
renamed to run_receive_hook() because the libified run_hook() cannot
handle this.
Mentored-by: Daniel Barkalow <barkalow@iabervon.org>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
A function that runs a hook is used in several Git commands.
builtin-commit.c has the one that is most general for cases without
piping. The one in builtin-gc.c prints some useful warnings.
This patch moves a merged version of these variants into libgit and
lets the other builtins use this libified run_hook().
The run_hook() function used in receive-pack.c feeds the standard
input of the pre-receive or post-receive hooks. This function is
renamed to run_receive_hook() because the libified run_hook() cannot
handle this.
Mentored-by: Daniel Barkalow <barkalow@iabervon.org>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-checkout.c | diff | blob | history | |
builtin-commit.c | diff | blob | history | |
builtin-gc.c | diff | blob | history | |
builtin-merge.c | diff | blob | history | |
builtin-receive-pack.c | diff | blob | history | |
run-command.c | diff | blob | history | |
run-command.h | diff | blob | history |