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

how to combine two clones in a collection

From
MKmartin f krafft <madduck@madduck.net>
Date
Jul 9, 2007, 22:22 UTC
Message-ID
<20070709222250.GA8007@piper.oerlikon.madduck.net>
Dear list,

I am new to git but already quite sold on it. Especially git-svn makes my heart jump.

I am now ready to move to using git for most of my everyday work, but I am still unsure how to tackle one specific aspect of it, for which I used svn:externals in the past. I know about git subprojects, but these aren't what I want, really.

I am a Debian developer, and while the upstream trunk is usually maintained in SVN by upstream him/herself, I maintain the ./debian directory elsewhere.

With SVN, I would have a directory with two external entries:
  upstream.trunk svn+ssh://svn.upstream.org/path/to/trunk
  upstream.trunk/debian svn+ssh://svn.debian.org/svn/pkg/trunk/debian

I hope this makes what I mean obvious. GNU arch has a similar concept called configs.

How can I do this with git? I am aware that maybe the best way would be to use git-svn to track the upstream branch remotely and to add ./debian in a separate git branch (and to stop using SVN and switch to git for ./debian), but I am not sure I want to mirror all upstream projects in git repos published on svn.debian.org, and if it's only for space reasons.

Do you know of other approaches, short of writing my own config-manager?

Thanks,
-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
 
spamtraps: madduck.bogus@madduck.net
 
"never eat more than you can lift."
                                                       -- miss piggy
Next: Linus Torvalds
Message 1 of 16 in “how to combine two clones in a collection”
  1. martin f krafftJul 9, 2007
  2. Linus TorvaldsJul 10, 2007
  3. martin f krafftJul 10, 2007
  4. Junio C HamanoJul 10, 2007
  5. martin f krafftJul 10, 2007
  6. Martin LanghoffJul 10, 2007
  7. Linus TorvaldsJul 10, 2007
  8. martin f krafftJul 10, 2007
  9. Brian GernhardtJul 10, 2007
  10. Kalle PokkiJul 10, 2007
  11. Brian GernhardtJul 10, 2007
  12. Robin RosenbergJul 10, 2007
  13. martin f krafftJul 11, 2007
  14. Johannes SchindelinJul 11, 2007
  15. martin f krafftJul 11, 2007
  16. Jakub NarebskiJul 11, 2007

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.