[PATCH] repack: call prune_packed_objects() and update_server_info() directly

2014-09-13 Thread René Scharfe
Call the functions behind git prune-packed and git update-server-info directly instead of using run_command(). This is shorter, easier and quicker. Signed-off-by: Rene Scharfe l@web.de --- builtin/repack.c | 23 ++- 1 file changed, 6 insertions(+), 17 deletions(-) diff

Re: [PATCH] repack: call prune_packed_objects() and update_server_info() directly

2014-09-13 Thread Stefan Beller
On 13.09.2014 09:28, René Scharfe wrote: Call the functions behind git prune-packed and git update-server-info directly instead of using run_command(). This is shorter, easier and quicker. Signed-off-by: Rene Scharfe l@web.de Thanks for cleaning up the literal rewrite of the shell

Re: [PATCH] repack: call prune_packed_objects() and update_server_info() directly

2014-09-13 Thread Jeff King
On Sat, Sep 13, 2014 at 09:28:01AM +0200, René Scharfe wrote: Call the functions behind git prune-packed and git update-server-info directly instead of using run_command(). This is shorter, easier and quicker. It can also introduce bugs, since a lot of git code assumes it is running in a