Re: [PATCH v2 18/23] refs.c: add a backend method structure with transaction functions

2014-08-26 Thread Ronnie Sahlberg
On Tue, Aug 26, 2014 at 2:25 PM, Junio C Hamano wrote: > Ronnie Sahlberg writes: > >> +struct ref_be { >> + transaction_begin_fn transaction_begin; >> + transaction_update_sha1_fn transaction_update_sha1; >> + transaction_create_sha1_fn transaction_create_sha1; >> + transaction_de

Re: [PATCH v2 18/23] refs.c: add a backend method structure with transaction functions

2014-08-26 Thread Junio C Hamano
Ronnie Sahlberg writes: > +struct ref_be { > + transaction_begin_fn transaction_begin; > + transaction_update_sha1_fn transaction_update_sha1; > + transaction_create_sha1_fn transaction_create_sha1; > + transaction_delete_sha1_fn transaction_delete_sha1; > + transaction_update

[PATCH v2 18/23] refs.c: add a backend method structure with transaction functions

2014-08-13 Thread Ronnie Sahlberg
Add a ref structure for backend methods. Start by adding method pointers for the transaction functions. Rename the existing transaction functions to files_* and make them static. Add new transaction functions that just pass through to the appropriate methods for the backend. Signed-off-by: Ronnie