git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Re: [PATCH v2 3/4] use new config API for worktree configurations of submodules

From
Heiko Voigt <hvoigt@hvoigt.net>
Date
Jul 17, 2014, 19:53 UTC
Message-ID
<20140717195346.GA23563@sandbox-ub>
In-Reply-To
<xmqqfvi2tfj2.fsf@gitster.dls.corp.google.com>
On Tue, Jul 15, 2014 at 03:37:21PM -0700, Junio C Hamano wrote:
Show 26 quoted lines
> Heiko Voigt <hvoigt@hvoigt.net> writes:
> 
> >> Can there be any caller that include and use submodule-config.h that
> >> does not need anythjing from submodule.h?  Or vice versa?
> >> 
> >> It just did not look like these two headers describe independent
> >> subsystems but they almost always have to go hand-in-hand.  And if
> >> that is the case, perhaps it is not such a good idea to add it as a
> >> new header.  That was where my question came from.
> >
> > The reason for a separate module was because we add quite some lines of
> > code for it.
> >
> > $ wc -l submodule.c
> > 1068 submodule.c
> > $ wc -l submodule-config.c 
> > 435 submodule-config.c
> >
> > Because of this I would like to keep the c-files separate.
> 
> OK.  I do not feel too strongly.  It just looked odd that a change
> needs to add a new header file without having to change the code in
> existing files at all.
> 
> Any other thing that still needs fixing in the series, or is it now
> ready for 'next'?
All comments addressed. From my side it should be ready for next.
Cheers Heiko
Previous: Junio C HamanoNext: Junio C Hamano
Message 10 of 12 in “submodule config lookup API”
  1. 0/4 submodule config lookup APIHeiko Voigt, Jun 28, 2014
  2. 1/4 implement submodule config cache for lookup of submodule namesHeiko Voigt, Jun 28, 2014
  3. 2/4 extract functions for submodule config set and lookupHeiko Voigt, Jun 28, 2014
  4. 3/4 use new config API for worktree configurations of submodulesHeiko Voigt, Jun 28, 2014
  5. Junio C HamanoJul 8, 2014
  6. Heiko VoigtJul 9, 2014
  7. Junio C HamanoJul 9, 2014
  8. Heiko VoigtJul 14, 2014
  9. Junio C HamanoJul 15, 2014
  10. Heiko VoigtJul 17, 2014
  11. Junio C HamanoJul 17, 2014
  12. 4/4 do not die on error of parsing fetchrecursesubmodules optionHeiko Voigt, Jun 28, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.