{"thread":{"id":"43259","subject":"Re: StGit metadata grabbing with git clone","startedAt":"2006-11-22T12:05:01Z","lastAt":"2006-11-23T14:31:23Z","messageCount":6,"participants":["Otavio Salvador","Robin Rosenberg","Catalin Marinas","Petr Baudis"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"295900","messageId":"87ac2jwutu.fsf@neumann.lab.ossystems.com.br","threadId":"43259","inReplyTo":null,"subject":"StGit metadata grabbing with git clone","fromName":"Otavio Salvador","fromEmail":"otavio@debian.org","sentAt":"2006-11-22T12:05:01Z","receivedAt":"2006-11-22T12:05:01Z","isPatch":false,"sender":{"key":"otavio@debian.org","avatar":null},"body":"Hello,\n\nI'm a happy user of stgit together with git to maintain a patch queue\nwhile I or the company team is working on patches that will be send\nfor merging. Both works great but we're having troubles when we try to\nclone a stgit repository.\n\nWhen I clone the repository it grab the source but it loses the\nmetadata. I would like to grab those too. Does anybody has a solution\nor a trick how I can do that?\n\n-- \n        O T A V I O    S A L V A D O R\n---------------------------------------------\n E-mail: otavio@debian.org      UIN: 5906116\n GNU/Linux User: 239058     GPG ID: 49A5F855\n Home Page: http://otavio.ossystems.com.br\n---------------------------------------------\n\"Microsoft gives you Windows ... Linux gives\n"},{"id":"296462","messageId":"200611222129.24369.robin.rosenberg.lists@dewire.com","threadId":"43259","inReplyTo":"87ac2jwutu.fsf@neumann.lab.ossystems.com.br","subject":"Re: StGit metadata grabbing with git clone","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg.lists@dewire.com","sentAt":"2006-11-22T20:29:24Z","receivedAt":"2006-11-22T20:29:24Z","isPatch":false,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"onsdag 22 november 2006 13:05 skrev Otavio Salvador:\n> Hello,\n>\n> I'm a happy user of stgit together with git to maintain a patch queue\n> while I or the company team is working on patches that will be send\n> for merging. Both works great but we're having troubles when we try to\n> clone a stgit repository.\n>\n> When I clone the repository it grab the source but it loses the\n> metadata. I would like to grab those too. Does anybody has a solution\n> or a trick how I can do that?\n\nYou can copy the repo using rsync or scp instead of git-clone or use stg \nuncommit after the regular clone. \n\n"},{"id":"298675","messageId":"20061122213800.GM7201@pasky.or.cz","threadId":"43259","inReplyTo":"200611222129.24369.robin.rosenberg.lists@dewire.com","subject":"Re: StGit metadata grabbing with git clone","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2006-11-22T21:38:00Z","receivedAt":"2006-11-22T21:38:00Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"On Wed, Nov 22, 2006 at 09:29:24PM CET, Robin Rosenberg wrote:\n> onsdag 22 november 2006 13:05 skrev Otavio Salvador:\n> > Hello,\n> >\n> > I'm a happy user of stgit together with git to maintain a patch queue\n> > while I or the company team is working on patches that will be send\n> > for merging. Both works great but we're having troubles when we try to\n> > clone a stgit repository.\n> >\n> > When I clone the repository it grab the source but it loses the\n> > metadata. I would like to grab those too. Does anybody has a solution\n> > or a trick how I can do that?\n> \n> You can copy the repo using rsync or scp instead of git-clone or use stg \n> uncommit after the regular clone. \n\nHow do you sync them then?\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nStuff: http://pasky.or.cz/\nThe meaning of Stonehenge in Traflamadorian, when viewed from above, is:\n\"Replacement part being rushed with all possible speed.\"\n"},{"id":"294839","messageId":"200611230056.15795.robin.rosenberg.lists@dewire.com","threadId":"43259","inReplyTo":"20061122213800.GM7201@pasky.or.cz","subject":"Re: StGit metadata grabbing with git clone","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg.lists@dewire.com","sentAt":"2006-11-22T23:56:14Z","receivedAt":"2006-11-22T23:56:14Z","isPatch":false,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"onsdag 22 november 2006 22:38 skrev Petr Baudis:\n> On Wed, Nov 22, 2006 at 09:29:24PM CET, Robin Rosenberg wrote:\n> > onsdag 22 november 2006 13:05 skrev Otavio Salvador:\n> > > Hello,\n> > >\n> > > I'm a happy user of stgit together with git to maintain a patch queue\n> > > while I or the company team is working on patches that will be send\n> > > for merging. Both works great but we're having troubles when we try to\n> > > clone a stgit repository.\n> > >\n> > > When I clone the repository it grab the source but it loses the\n> > > metadata. I would like to grab those too. Does anybody has a solution\n> > > or a trick how I can do that?\n> >\n> > You can copy the repo using rsync or scp instead of git-clone or use stg\n> > uncommit after the regular clone.\n>\n> How do you sync them then?\n\n1) Don't. You're supposed to share stgit patches via email.\n\n2) Want to mess try anyway?\n\nAt first I was thinking NO!,  but then again, it might be \"interesting\" to try \nit. \n\nYou can publish the state of a branch using git push. This will look like the \npu branch in the official Git repo, i.e. a branch whose list of commits get \nchanged completely, rather than being appended to. This could be considered \nsane, ie. you publish the current state of your work.\n\nYou can also pull from a stgitted branch. Still sane, if you wan't to look at \nsomebody else's work.\n\nI mentioned uncommit. I'm not sure that was a wise suggestion. If you wan't to \npush and pull changes. don't uncommit incomming changes and don't pretend to \nwork on the same patch and you'll probably be just fine. .....  \n\n"},{"id":"298674","messageId":"tnxslgawic2.fsf@arm.com","threadId":"43259","inReplyTo":"87ac2jwutu.fsf@neumann.lab.ossystems.com.br","subject":"Re: StGit metadata grabbing with git clone","fromName":"Catalin Marinas","fromEmail":"catalin.marinas@arm.com","sentAt":"2006-11-23T10:47:09Z","receivedAt":"2006-11-23T10:47:09Z","isPatch":false,"sender":{"key":"catalin.marinas@arm.com","avatar":null},"body":"Otavio Salvador <otavio@debian.org> wrote:\n> I'm a happy user of stgit together with git to maintain a patch queue\n> while I or the company team is working on patches that will be send\n> for merging. Both works great but we're having troubles when we try to\n> clone a stgit repository.\n>\n> When I clone the repository it grab the source but it loses the\n> metadata. I would like to grab those too. Does anybody has a solution\n> or a trick how I can do that?\n\nMost of the StGIT metadata can be generated by \"uncommit\" (the reason\nI still keep a lot of this metadata like author etc. is for\nspeed). However, I'm not sure how well this would work since you can\nnor synchronise the patches afterwards. StGIT works well for sharing\npatches via e-mail but you might want to consider topic branches\ninstead of patches (though StGIT seems more convenient).\n\nAnother idea is to export the patches (stg export) to a common place\nand import them in the other tree (stg import --series --replace). I\ncould also add a --sync option to \"import\", instead of --replace,\nwhich would perform a three-way merge with the coresponding local\npatches so that it grabs any additional changes in both repositories\nor branches (similar to \"pick --fold\", option which I added for the\nsame reason).\n\nYet another idea is a \"stg import\" command for remote repositories or\nbranches which would bring in the StGIT metadata.\n\nAt the bottom of the TODO list is something that would solve this,\nonly that I've never found the time to think about it properly. I work\non several branches (and even separate trees) and share patches\nbetween them. It would be nice to be able to synchronise the changes\nto these patches.\n\n-- \n"},{"id":"294156","messageId":"87ejru1bgk.fsf@neumann.lab.ossystems.com.br","threadId":"43259","inReplyTo":"tnxslgawic2.fsf@arm.com","subject":"Re: StGit metadata grabbing with git clone","fromName":"Otavio Salvador","fromEmail":"otavio@debian.org","sentAt":"2006-11-23T14:31:23Z","receivedAt":"2006-11-23T14:31:23Z","isPatch":false,"sender":{"key":"otavio@debian.org","avatar":null},"body":"Catalin Marinas <catalin.marinas@arm.com> writes:\n\n> Otavio Salvador <otavio@debian.org> wrote:\n>> I'm a happy user of stgit together with git to maintain a patch queue\n>> while I or the company team is working on patches that will be send\n>> for merging. Both works great but we're having troubles when we try to\n>> clone a stgit repository.\n>>\n>> When I clone the repository it grab the source but it loses the\n>> metadata. I would like to grab those too. Does anybody has a solution\n>> or a trick how I can do that?\n>\n> Most of the StGIT metadata can be generated by \"uncommit\" (the reason\n> I still keep a lot of this metadata like author etc. is for\n> speed). However, I'm not sure how well this would work since you can\n> nor synchronise the patches afterwards. StGIT works well for sharing\n> patches via e-mail but you might want to consider topic branches\n> instead of patches (though StGIT seems more convenient).\n>\n> Another idea is to export the patches (stg export) to a common place\n> and import them in the other tree (stg import --series --replace). I\n> could also add a --sync option to \"import\", instead of --replace,\n> which would perform a three-way merge with the coresponding local\n> patches so that it grabs any additional changes in both repositories\n> or branches (similar to \"pick --fold\", option which I added for the\n> same reason).\n>\n> Yet another idea is a \"stg import\" command for remote repositories or\n> branches which would bring in the StGIT metadata.\n>\n> At the bottom of the TODO list is something that would solve this,\n> only that I've never found the time to think about it properly. I work\n> on several branches (and even separate trees) and share patches\n> between them. It would be nice to be able to synchronise the changes\n> to these patches.\n\nThat would be a really nice feature. Besides, would be nice to have a\nway to plug something on clone and push git methods so you might send\nall those metadata without much hassle.\n\n-- \n        O T A V I O    S A L V A D O R\n---------------------------------------------\n E-mail: otavio@debian.org      UIN: 5906116\n GNU/Linux User: 239058     GPG ID: 49A5F855\n Home Page: http://otavio.ossystems.com.br\n---------------------------------------------\n\"Microsoft gives you Windows ... Linux gives\n"}]}