Re: [PATCH 1/2] Move run_hook() from builtin-commit.c into run-command.c (libgit)
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 19 quoted lines
> On Thu, 15 Jan 2009, Stephan Beyer wrote:
>
>> Stripping out a libified version seemed better to me than
>> copy and paste.
>
> Oh, definitely.
>
>> - ret = start_command(&hook);
>> - if (ret) {
>> - warning("Could not spawn %s", argv[0]);
>> - return ret;
>> - }
>> - ret = finish_command(&hook);
>> - if (ret == -ERR_RUN_COMMAND_WAITPID_SIGNAL)
>> - warning("%s exited due to uncaught signal", argv[0]);
>
> What are the side effects of replacing this with "ret =
> run_command(&hook);"? This has to be discussed and defended in the commit
> message.I think the answer is "Lost warnings here and there".