Re: [PATCH 17/22] refs.c: add a backend method structure with transaction functions

2014-08-11 Thread Ronnie Sahlberg
On Fri, Aug 8, 2014 at 11:17 AM, David Turner wrote: > On Fri, 2014-08-08 at 09:45 -0700, Ronnie Sahlberg wrote: > >> +struct ref_be refs_files = { >> + .transaction_begin = files_transaction_begin, >> + .transaction_update_sha1= files_transaction_update_sha1, >> +

Re: [PATCH 17/22] refs.c: add a backend method structure with transaction functions

2014-08-08 Thread David Turner
On Fri, 2014-08-08 at 09:45 -0700, Ronnie Sahlberg wrote: > +struct ref_be refs_files = { > + .transaction_begin = files_transaction_begin, > + .transaction_update_sha1= files_transaction_update_sha1, > + .transaction_create_sha1= files_transaction_create_s

[PATCH 17/22] refs.c: add a backend method structure with transaction functions

2014-08-08 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