Re: Re: [PATCH v3 4/5] teach config --blob option to parse config from database

2013-05-10 Thread Heiko Voigt
On Fri, May 10, 2013 at 12:30:39AM +0200, Jeff King wrote: > On Thu, May 09, 2013 at 06:20:18PM +0200, Heiko Voigt wrote: > > > +static int config_buf_fgetc(struct config_source *conf) > > +{ > > + if (conf->buf.pos < conf->buf.len && conf->buf.buf[conf->buf.pos]) > > + return conf->bu

Re: [PATCH v3 4/5] teach config --blob option to parse config from database

2013-05-09 Thread Jeff King
On Thu, May 09, 2013 at 06:20:18PM +0200, Heiko Voigt wrote: > +static int config_buf_fgetc(struct config_source *conf) > +{ > + if (conf->buf.pos < conf->buf.len && conf->buf.buf[conf->buf.pos]) > + return conf->buf.buf[conf->buf.pos++]; > + > + return EOF; > +} It probably w

Re: [PATCH v3 4/5] teach config --blob option to parse config from database

2013-05-09 Thread Eric Sunshine
On Thu, May 9, 2013 at 12:20 PM, Heiko Voigt wrote: > This can be used to read configuration values directly from gits s/gits/git's/ > database. For example it is useful for reading to be checked out > .gitmodules files directly from the database. > > Signed-off-by: Heiko Voigt -- To unsubscrib

[PATCH v3 4/5] teach config --blob option to parse config from database

2013-05-09 Thread Heiko Voigt
This can be used to read configuration values directly from gits database. For example it is useful for reading to be checked out .gitmodules files directly from the database. Signed-off-by: Heiko Voigt --- builtin/config.c | 31 +++--- cache.h| 6 +++- config.