From: Junio C Hamano Date: Thu, 15 Jan 2009 22:59:39 GMT Subject: Re: [PATCH 1/2] Move run_hook() from builtin-commit.c into run-command.c (libgit) Message-ID: <7v7i4wqioz.fsf@gitster.siamese.dyndns.org> In-Reply-To: Johannes Schindelin writes: > 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".