Re: [PATCH v4 08/21] refs: add methods to init refs db

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2016-02-11 at 09:54 +0100, Michael Haggerty wrote:
> On 02/05/2016 08:44 PM, David Turner wrote:
> > Alternate refs backends might not need the refs/heads directory and
> > so
> > on, so we make ref db initialization part of the backend.
> > 
> > Signed-off-by: David Turner <dturner@xxxxxxxxxxxxxxxx>
> > ---
> >  builtin/init-db.c    | 20 ++++++++++----------
> >  refs.c               |  5 +++++
> >  refs.h               |  2 ++
> >  refs/files-backend.c | 16 ++++++++++++++++
> >  refs/refs-internal.h |  2 ++
> >  5 files changed, 35 insertions(+), 10 deletions(-)
> > 
> > [...]
> > diff --git a/refs.h b/refs.h
> > index 5bc3fbc..c5ecc52 100644
> > --- a/refs.h
> > +++ b/refs.h
> > @@ -66,6 +66,8 @@ extern int ref_exists(const char *refname);
> >  
> >  extern int is_branch(const char *refname);
> >  
> > +extern int refs_init_db(struct strbuf *err, int shared);
> 
> The convention elsewhere is for "struct strbuf *err" to be the *last*
> parameter.

Fixed, thanks.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]