From: Jonathan Nieder Date: Fri, 17 Mar 2017 22:50:40 GMT Subject: Re: [PATCH] receive-pack: simplify run_update_post_hook() Message-ID: <20170317225040.GQ26789@aiede.mtv.corp.google.com> In-Reply-To: René Scharfe wrote: > Instead of counting the arguments to see if there are any and then > building the full command use a single loop and add the hook command > just before the first argument. This reduces duplication and overall > code size. > > Signed-off-by: Rene Scharfe > --- > builtin/receive-pack.c | 13 +++++-------- > 1 file changed, 5 insertions(+), 8 deletions(-) Reviewed-by: Jonathan Nieder