Re: [PATCH/RFC/GSoC 07/17] rebase-common: implement refresh_and_write_cache()

2016-03-19 Thread Paul Tan
On Tue, Mar 15, 2016 at 5:10 AM, Junio C Hamano wrote: > Paul Tan writes: > >> In the upcoming git-rebase to C rewrite, it is a common operation to >> refresh the index and write the resulting index. >> >> builtin/am.c already implements

Re: [PATCH/RFC/GSoC 07/17] rebase-common: implement refresh_and_write_cache()

2016-03-14 Thread Junio C Hamano
Paul Tan writes: > In the upcoming git-rebase to C rewrite, it is a common operation to > refresh the index and write the resulting index. > > builtin/am.c already implements refresh_and_write_cache(), which is what > we want. Move it to rebase-common.c, so that it can be

[PATCH/RFC/GSoC 07/17] rebase-common: implement refresh_and_write_cache()

2016-03-12 Thread Paul Tan
In the upcoming git-rebase to C rewrite, it is a common operation to refresh the index and write the resulting index. builtin/am.c already implements refresh_and_write_cache(), which is what we want. Move it to rebase-common.c, so that it can be shared with all the rebase backends, including