Re: [PATCH v8 40/41] builtin/am: use apply api in run_apply()

2016-07-26 Thread Junio C Hamano
Christian Couder writes: > static int run_apply(const struct am_state *state, const char *index_file) > { > - struct child_process cp = CHILD_PROCESS_INIT; > + struct argv_array apply_paths = ARGV_ARRAY_INIT; > + struct argv_array apply_opts =

[PATCH v8 40/41] builtin/am: use apply api in run_apply()

2016-06-27 Thread Christian Couder
This replaces run_apply() implementation with a new one that uses the apply api that has been previously prepared in apply.c and apply.h. This shoud improve performance a lot in certain cases. As the previous implementation was creating a new `git apply` process to apply each patch, it could be