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

Re: importing cvs logical modules

From
Junio C Hamano <junkio@cox.net>
Date
May 25, 2006, 05:01 UTC
Message-ID
<7vslmyzoit.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<93c3eada0605242148u4656bc31p96d84a16703f0fe0@mail.gmail.com>
"Geoff Russell" <geoffrey.russell@gmail.com> writes:
Show 7 quoted lines
> I'd like to make 1 git repository Progs with xxxx and yyyy as child trees.
>
>           Progs/.git
>           Progs/xxxx
>           Progs/yyyy
>
> Does this sound useful to anyone else, or is it already possible?
I would do it like this:
           Progs/.git
           Progs/xxxx/.git
           Progs/yyyy/.git

I do not know what you have in Progs/ hierarchy -- if it is just scaffolding to house subdirectories and nothing else you may not even need Progs/.git repository.

This is a very useful and handy structure, and you do not need any tool support once you have these as separate repositories. If you want a single distribution point, you can push from these separate repositories into separate branches of a single distribution point repository [*1*].

One potential disadvantage is that you would not get revision linkage between these "modules", but not having tight linkage is the point of modular structure, so depending on your workflow it probably may not matter.

[Footnote]

*1* In fact, my git working area has the "master", "next" or "pu" branch checked out in /path/to/work/area/git (and the repository is in /path/to/work/area/git/.git directory), and I check out the "todo" branch in /path/to/work/area/git/Meta directory, with /path/to/work/area/git/Meta/.git directory as its repository.

Previous: Jakub NarebskiNext: Geoff Russell
Message 3 of 7 in “importing cvs logical modules”
  1. Geoff RussellMay 25, 2006
  2. Jakub NarebskiMay 25, 2006
  3. Junio C HamanoMay 25, 2006
  4. Geoff RussellMay 25, 2006
  5. Martin LanghoffMay 25, 2006
  6. Geoff RussellMay 25, 2006
  7. Jakub NarebskiMay 25, 2006

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.