Re: [PATCH 01/16] refs: add a backend method structure with transaction functions

2015-12-04 Thread Junio C Hamano
David Turner writes: > diff --git a/refs.c b/refs.c > index 0f7628d..babba8a 100644 > --- a/refs.c > +++ b/refs.c > @@ -10,6 +10,31 @@ > #include "tag.h" > > /* > + * We always have a files backend and it is the default. > + */ > +extern struct ref_be refs_be_files;

[PATCH 01/16] refs: add a backend method structure with transaction functions

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