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

Re: Sharing nested subparts of large repository?

From
NKNeal Kreitzinger <nkreitzinger@gmail.com>
Date
Mar 28, 2012, 09:52 UTC
Message-ID
<4F72DF55.6000202@gmail.com>
In-Reply-To
<1332693502389-7403743.post@n2.nabble.com>
On 3/25/2012 11:38 AM, LordSmoke wrote:
Show 21 quoted lines
> I've been using git for a couple of months to get used to the system.
> Basic stuff - a few larger project repositories in unique
> directories, commits, pushes to a remote repository. Mostly as a kind
> of backup system.
>
> However, my ultimate goal is to share part of one large project
> currently being managed with git with my developers. I want them to
> have access to source code and test data, but not my manuscripts,
> correspondence, whatever.
>
> I also want to make a portion of what I will give my developers
> available as open source, e.g., on github, but not all of it. Just
> the stable, non-developmental parts. NOT the our development stuff
> and not the parts being used for private contracts.
>
> Submodules seem promising, but the examples are not quite what I am
> looking for, as far as I can tell. They talk about isolating
> submodules that depend on a larger project. I want to make available
> the larger project while keeping nested submodules (so to speak)
> private.
>

It sounds like maybe your superproject has all the submodules and their superproject has only some of the submodules. You can also have a superproject just like theirs so you have a superproject with everything (because your special) and another superproject like theirs (so you can pretend to be just like them).

I'm not a submodule expert, but I'm pretty sure you can do that. Whether or not that matches up with your current structure of various git repos or not I don't know (enough details).

v/r, neal

Previous: Dennis E. SliceNext: LordSmoke
Message 4 of 7 in “Sharing nested subparts of large repository?”
  1. LordSmokeMar 25, 2012
  2. Phil HordMar 26, 2012
  3. Dennis E. SliceMar 26, 2012
  4. Neal KreitzingerMar 28, 2012
  5. LordSmokeMar 28, 2012
  6. LordSmokeMar 29, 2012
  7. LordSmokeApr 5, 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.