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

RE: Mixing and matching multiple projects

From
HLHolding, Lawrence <lawrence.holding@cubic.com>
Date
Feb 20, 2012, 00:17 UTC
Message-ID
<A5E8E180685CEF45AB9E737A010799802D972E@cdnz-ex1.corp.cubic.cub>
In-Reply-To
<7v39a9tf45.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
> Junio C Hamano <gitster@pobox.com> writes:
> 
> > But I wonder if we can do without forking the /s/xyzzy/os/.git
submodule?
Show 7 quoted lines
> >
> > If we *could* do this:
> >
> > 	cd /s/xyzzy
> >       mkdir os/drivers/frotz && populate the directory with sources
> 
> A crucial step was missing here for my story to make *any* sense.
Sorry.
> A step to create a repository at /s/xyzzy/os/drivers/frotz/.git must
be
Show 9 quoted lines
> here, like this:
> 
>         (cd os/drivers/frotz && git init && git add . && git commit)
> 
> And then that is added as a submodule to the superproject.
> 
> >       git add os/drivers/frotz ;# to the top-level superproject!!
> >
> > to add the "frotz driver" submodule directly to the superproject,
then we
> > could leave /s/xyzzy/os/.git intact, letting it follow the open
source
> > world. Because the superproject must be forked in order to keep
track of
> > what happens in the appliance that supports the "frotz" driver
anyway,
> > this could result in the minimum amount of forking from the end
user's
> > point of view.
> >
> ........
> >
How about 
- creating a "driver" project in the superproject, 
- add a .gitignore or .git/exclude entry for the
/s/xyzzy/os/drivers/frotz folder into the os project
- symlinking the /s/xyzzy/os/drivers/frotz folder to the
/s/xyzzy/driver/frotz folder

some of this can be automated in the post checkout script of the superproject.

Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 5 in “Mixing and matching multiple projects”
  1. Junio C HamanoFeb 17, 2012
  2. Junio C HamanoFeb 17, 2012
  3. Holding, LawrenceFeb 20, 2012
  4. Junio C HamanoFeb 20, 2012
  5. Seth RobertsonFeb 17, 2012

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.