Re: [PATCH 1/6] submodule.*: Introduce simple C interface for submodule lookup by path
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Sep 12, 2008, 21:35 UTC
- Message-ID
- <m3hc8lnj4k.fsf@localhost.localdomain>
- In-Reply-To
- <7vsks5njmg.fsf@gitster.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
> Petr Baudis <pasky@suse.cz> writes:
Show 13 quoted lines
> > +{
> > + struct gitmodules_info *info = info_;
> > + const char *subkey;
> > +
> > + if (prefixcmp(key, "submodule."))
> > + return 0;
> > +
> > + subkey = strrchr(key, '.');
> > + if (!subkey)
> > + return 0;
>
> This cannot happen; you made sure the thing begins with "submodule."
> already.[cut]
Are there any api to access and manipulate configuration, including fqvn with the subsection part, instead of having to do this again and again?
-- Jakub Narebski Poland ShadeHawk on #git