{"thread":{"id":"18889","subject":"Git within Git what a git","startedAt":"2009-04-16T02:10:21Z","lastAt":"2009-04-19T04:53:15Z","messageCount":3,"participants":["elkten","Robin H. Johnson","David Aguilar"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"111406","messageId":"23070273.post@talk.nabble.com","threadId":"18889","inReplyTo":null,"subject":"Git within Git what a git","fromName":"elkten","fromEmail":"elkton.gen@gmail.com","sentAt":"2009-04-16T02:10:21Z","receivedAt":"2009-04-16T02:10:21Z","isPatch":false,"sender":{"key":"elkton.gen@gmail.com","avatar":null},"body":"\nHi All,\n\nBefore I go hacking the git source code, I would like git to be able to\nmanage git trees in git trees, however I would like to check it can't\nalready be done, let me give an example...\n\nImagine a directory structure thus...\n\nfedora12-rc3/\n|-- .git\n|-- init\n|   `-- .git\n|-- kernel\n|   `-- .git\n`-- libpng\n    `-- .git\n\nfedora12-rc3 is the attempt at a fedor12-rc3 build, inside are the packages\nfor init, the kernel and libpng, each of these init, kernel and libpng have\ntheir own branches which correspond to their respective versions.\n\nInside the fedora12-rc3 directory is also many branches called fedora12-rc2,\nfedora12-rc1 etc...\n\nI would like to be able to \"git checkout fedora12-rc1\", and it to\nautomatically checkout the corresponding versions relating to fedora12-rc1,\ninto init, kernel and libpng.\n\nWhen I make a new branch in say \"init\" and check in the changes, when I go\nto the fedora12-rc1 branch I would like then to type git commit, and it\nrecord the version change within the init branch, thus when I go to check\nout the rc1 branch again I get all my changes.\n\nIf I switched branches and there were uncommitted changes in \"kernel\" it\nwould warn me and ask me if I wanted to continue.\n\nThere are various different merge options that would be nice to, say fred\nwas working on fedora12-rc2-fred and bob was working on fedroa12-rc2-bob,\nand I wanted to merge the two together (and we had made changes to the same\npackages) this would all be done for me.\n\nI can understand this might be possible with some scripting, on git hooks,\nhowever this would seem a neat feature for git to support itself, does\nanybody have any scripts to do this?\n\nDo other people think this would be a useful feature?\n\nelk\n\n\n\n-- \nView this message in context: http://www.nabble.com/Git-within-Git-what-a-git-tp23070273p23070273.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"111415","messageId":"20090416T043951Z@curie.orbis-terrarum.net","threadId":"18889","inReplyTo":"23070273.post@talk.nabble.com","subject":"Re: Git within Git what a git","fromName":"Robin H. Johnson","fromEmail":"robbat2@gentoo.org","sentAt":"2009-04-16T04:40:25Z","receivedAt":"2009-04-16T04:40:25Z","isPatch":false,"sender":{"key":"robbat2@gentoo.org","avatar":"https://avatars.githubusercontent.com/u/373898?v=4"},"body":"On Wed, Apr 15, 2009 at 08:11:18PM -0700, elkten wrote:\n> Before I go hacking the git source code, I would like git to be able to\n> manage git trees in git trees, however I would like to check it can't\n> already be done, let me give an example...\nGo and read the docs, the feature exists already, it's called\nsubmodules.\n\n-- \nRobin Hugh Johnson\nGentoo Linux Developer & Infra Guy\nE-Mail     : robbat2@gentoo.org\nGnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85\n"},{"id":"111631","messageId":"20090419045314.GA5414@gmail.com","threadId":"18889","inReplyTo":"23070273.post@talk.nabble.com","subject":"Re: Git within Git what a git","fromName":"David Aguilar","fromEmail":"davvid@gmail.com","sentAt":"2009-04-19T04:53:15Z","receivedAt":"2009-04-19T04:53:15Z","isPatch":false,"sender":{"key":"davvid@gmail.com","avatar":"https://avatars.githubusercontent.com/u/13196?v=4"},"body":"On  0, elkten <elkton.gen@gmail.com> wrote:\n> \n> Hi All,\n> \n> Before I go hacking the git source code, I would like git to be able to\n> manage git trees in git trees, however I would like to check it can't\n\ngit-submodule has a google summer of code entry that's sounds\nlike it's right up your alley:\n\thttp://git.or.cz/gitwiki/SoC2009Ideas\n\nYou help in making it happen would be awesome, especially when\nhandling large collections of git projects.\n\nI'm sure you've seen Shawn's repo project?  (google android + repo)\nIf your timeline is shorter then he already has lots of\nfunctionality in there.\n\n\thttp://source.android.com/download/using-repo\n\nLonger term (and I think Shawn agrees with this) we want it all\nback in git, hence the gsoc project.\n\nAre you looking at running some of fedora's infrastructure with\nthis, or was that just an example?  If so, that'd be really\ninteresting since those are the same kinda problems any large\norganization runs into (lots of projects, lots of disconnect git\nrepos), and something I would be interested in helping out with\nas well.\n\n\n> already be done, let me give an example...\n> \n> Imagine a directory structure thus...\n> \n> fedora12-rc3/\n> |-- .git\n> |-- init\n> |   `-- .git\n> |-- kernel\n> |   `-- .git\n> `-- libpng\n>     `-- .git\n> \n> fedora12-rc3 is the attempt at a fedor12-rc3 build, inside are the packages\n> for init, the kernel and libpng, each of these init, kernel and libpng have\n> their own branches which correspond to their respective versions.\n> \n> Inside the fedora12-rc3 directory is also many branches called fedora12-rc2,\n> fedora12-rc1 etc...\n> \n> I would like to be able to \"git checkout fedora12-rc1\", and it to\n> automatically checkout the corresponding versions relating to fedora12-rc1,\n> into init, kernel and libpng.\n> \n> When I make a new branch in say \"init\" and check in the changes, when I go\n> to the fedora12-rc1 branch I would like then to type git commit, and it\n> record the version change within the init branch, thus when I go to check\n> out the rc1 branch again I get all my changes.\n> \n> If I switched branches and there were uncommitted changes in \"kernel\" it\n> would warn me and ask me if I wanted to continue.\n> \n> There are various different merge options that would be nice to, say fred\n> was working on fedora12-rc2-fred and bob was working on fedroa12-rc2-bob,\n> and I wanted to merge the two together (and we had made changes to the same\n> packages) this would all be done for me.\n> \n> I can understand this might be possible with some scripting, on git hooks,\n> however this would seem a neat feature for git to support itself, does\n> anybody have any scripts to do this?\n> \n> Do other people think this would be a useful feature?\n> \n> elk\n> \n> \n> \n> -- \n> View this message in context: http://www.nabble.com/Git-within-Git-what-a-git-tp23070273p23070273.html\n> Sent from the git mailing list archive at Nabble.com.\n> \n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n\n-- \n\t\tDavid\n"}]}