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

Sharing a file between projects

From
PRPatrick Rutkowski <rutski89@gmail.com>
Date
May 22, 2010, 16:24 UTC
Message-ID
<D3671E72-7B04-446B-86A8-48761FD476E4@gmail.com>
Say that I've got several projects called P1, P2, and P3. Each project in a separate git repo. Each project has file foo.cfg. However, whenever I change foo.cfg in P1, I have to make the same change to the foo.cfg in P2 and P3.
They really are separate projects which ought to have their own git repos, I don't want to force a user checking out P1 to also check out P2 and P3.
But I also don't want to have to manually make sure that foo.cfg is synced among all three projects.
Any ideas here guys?
-Patrick
Next: Jonathan Nieder
Message 1 of 2 in “Sharing a file between projects”
  1. Patrick RutkowskiMay 22, 2010
  2. Jonathan NiederMay 24, 2010

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.