From: Jakub Narebski Date: Fri, 12 Sep 2008 21:35:54 GMT Subject: Re: [PATCH 1/6] submodule.*: Introduce simple C interface for submodule lookup by path Message-ID: In-Reply-To: <7vsks5njmg.fsf@gitster.siamese.dyndns.org> Junio C Hamano writes: > Petr Baudis writes: > > +{ > > + 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