Re: [PATCH v6 05/32] refs: add a backend method structure with transaction functions

2016-02-29 Thread David Turner
On Fri, 2016-02-26 at 23:06 -0500, Jeff King wrote: > On Wed, Feb 24, 2016 at 05:58:37PM -0500, David Turner wrote: > > > +int set_ref_storage_backend(const char *name) > > +{ > > + struct ref_storage_be *be; > > + > > + for (be = refs_backends; be; be = be->next) > > + if

Re: [PATCH v6 05/32] refs: add a backend method structure with transaction functions

2016-02-26 Thread Jeff King
On Wed, Feb 24, 2016 at 05:58:37PM -0500, David Turner wrote: > +int set_ref_storage_backend(const char *name) > +{ > + struct ref_storage_be *be; > + > + for (be = refs_backends; be; be = be->next) > + if (!strcmp(be->name, name)) { > + the_refs_backend =

[PATCH v6 05/32] refs: add a backend method structure with transaction functions

2016-02-24 Thread David Turner
From: Ronnie Sahlberg Add a ref structure for storage backend methods. Start by adding a method pointer for the transaction commit function. Add a function set_refs_backend to switch between storage backends. The files based storage backend is the default. Signed-off-by: