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

Re: Question about handling of heterogeneous repositories

From
Andreas Ericsson <ae@op5.se>
Date
Nov 22, 2005, 19:40 UTC
Message-ID
<43837442.9060602@op5.se>
In-Reply-To
<81b0412b0511220850w429d2f36lafe9de7ce19ce8f@mail.gmail.com>
Alex Riesen wrote:
Show 25 quoted lines
> Hi,
> 
> it is sometimes the case that a project consists of parts which are
> unrelated to each other, and only thing in common between them is that
> they all are used in that particular project. For example a program
> uses some library and the developer(s) of that program would like to
> have the source of that library somewhere close. Well, for this simple
> example one could just use two repositories, laid close to each other
> in a directory, like project/lib and project/prog.
> Now, if I make the example a bit more complex and say, that the
> developers of the program are the developers in that project and
> change everything under project/ directory, including
> project/library/. They are also good people and ready to give the
> changes to the library upstream.
> 
> How do they achieve that, without sending project/ and project/program/?
> 
> For everyone who have an experience with ClearCase or Perforce (I'm
> sorry for mentioning it) it is what the "mappings" are often used for:
> a project is build together from different parts, which can be worked
> on separately.
> 
> I'm trying to introduce git at work, but have to prepare myself for
> possible questions first, and this is one of them :)
> 
We do like this;

core core/gui core/lib

$ cat .gitignore gui lib

This is also nice because it lets the gui maintainers have the gui as the root with the core and lib parts as subdirectories. Everyone has their own responsibility checked out at top-level with other pieces below it. It's easy enough to script a pull of all repos so everyone's up to sync and everybody's happy.

It would certainly be nicer to have git ignore directories that have the ".git" directory (so long as it's not the top of the repo, that is), but I haven't had the energy to fix that when there's already a solution that's simple enough and quite adequate.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: Alex RiesenNext: Alex Riesen
Message 2 of 11 in “Question about handling of heterogeneous repositories”
  1. Alex RiesenNov 22, 2005
  2. Andreas EricssonNov 22, 2005
  3. Alex RiesenNov 22, 2005
  4. Petr BaudisNov 27, 2005
  5. Alex RiesenNov 29, 2005
  6. Alex RiesenNov 30, 2005
  7. Johannes SchindelinNov 30, 2005
  8. Josef WeidendorferNov 30, 2005
  9. Alex RiesenNov 30, 2005
  10. Josef WeidendorferNov 30, 2005
  11. Alex RiesenDec 1, 2005

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.