Re: [PATCH] receive-pack: simplify run_update_post_hook()
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Mar 17, 2017, 22:50 UTC
- Message-ID
- <20170317225040.GQ26789@aiede.mtv.corp.google.com>
- In-Reply-To
- <ac1c0cfc-b1de-37be-23b3-98ef1081ec4a@web.de>
René Scharfe wrote:
Show 9 quoted lines
> 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 <l.s.r@web.de> > --- > builtin/receive-pack.c | 13 +++++-------- > 1 file changed, 5 insertions(+), 8 deletions(-)
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>