{"thread":{"id":"8375","subject":"Re: Breaking up repositories","startedAt":"2007-05-31T15:53:58Z","lastAt":"2007-06-01T10:25:29Z","messageCount":3,"participants":["Josh Triplett","Andy Parkins","Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"43688","messageId":"465EEF96.6050307@freedesktop.org","threadId":"8375","inReplyTo":null,"subject":"Re: Breaking up repositories","fromName":"Josh Triplett","fromEmail":"josh@freedesktop.org","sentAt":"2007-05-31T15:53:58Z","receivedAt":"2007-05-31T15:53:58Z","isPatch":false,"sender":{"key":"josh@joshtriplett.org","avatar":"https://avatars.githubusercontent.com/u/162737?v=4"},"body":"Jason Sewall wrote:\n> I recently imported my subversion repo with git-svn and I'm curious\n> what the best way to break up the monolithic repo (my many disparate\n> projects from my single svn repo) into individual git repos of their\n> own.\n> \n>  I'm still trying to get a grasp on the considerable git toolbox and I\n> can't seem to find the functionality I'm describing, but I'm sure it\n> exists - I heard Linus talk about it in that Google talk on git!\n\nIn the specific case of git-svn, you can probably give git-svn the\nappropriate paths to import each project separately; that may do what you\nwant, depending on your repository layout.\n\nIn the general case, if you want to split a subtree of a git repo into a git\nrepo, you want git-split, by Jamey Sharp and I:\n<http://people.freedesktop.org/~jamey/git-split>\nFrom a copy of the git repo you want to split, just run \"git-split subdir\",\noptionally with a newest and oldest commit, and it will output the sha1 of\nthe new top commit for use as the new branch ref.  Remove all other\nbranches, reflogs, and other references to the old commits, and use prune\nor gc to get rid of old objects.  Repeat as desired for other subdirs.\n\nWe really need to fix some things in git-split and get it merged into git.\n\n- Josh Triplett\n\n"},{"id":"43724","messageId":"200706010845.45761.andyparkins@gmail.com","threadId":"8375","inReplyTo":"465EEF96.6050307@freedesktop.org","subject":"Re: Breaking up repositories","fromName":"Andy Parkins","fromEmail":"andyparkins@gmail.com","sentAt":"2007-06-01T07:45:45Z","receivedAt":"2007-06-01T07:45:45Z","isPatch":false,"sender":{"key":"andyparkins@gmail.com","avatar":null},"body":"On Thursday 2007 May 31, Josh Triplett wrote:\n\n> We really need to fix some things in git-split and get it merged into git.\n\nObviously it's Junio's call, but can I suggest that getting it in the git tree \n(presumably under contrib/) should not be dependent on fixing \nwhatever \"things\" you are worrying about?  Waiting until it's perfect before \nsubmitting it.  As Voltaire said (I think), \"better is the enemy of good\".\n\nSpeaking from my own personal viewpoint, while I'm not a huge contributor to \ngit, I do fix the odd buglet here and there - and here's the rub - I only do \nit to those files that are in the git tree.\n\nWhile git-split is being maintained separately, I would argue that there are \nless eyes on it.  Get it in, regardless of state, at the very least it will \nmean that git-split's development will be tracked as publicly as git.\n\n\nAndy\n-- \nDr Andy Parkins, M Eng (hons), MIET\nandyparkins@gmail.com\n"},{"id":"43739","messageId":"f3orsv$97l$1@sea.gmane.org","threadId":"8375","inReplyTo":"465EEF96.6050307@freedesktop.org","subject":"Re: Breaking up repositories","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2007-06-01T10:25:29Z","receivedAt":"2007-06-01T10:25:29Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Josh Triplett wrote:\n> Jason Sewall wrote:\n\n>> I recently imported my subversion repo with git-svn and I'm curious\n>> what the best way to break up the monolithic repo (my many disparate\n>> projects from my single svn repo) into individual git repos of their\n>> own.\n> \n> In the specific case of git-svn, you can probably give git-svn the\n> appropriate paths to import each project separately; that may do what you\n> want, depending on your repository layout.\n> \n> In the general case, if you want to split a subtree of a git repo into a git\n> repo, you want git-split, by Jamey Sharp and I:\n> <http://people.freedesktop.org/~jamey/git-split>\n> From a copy of the git repo you want to split, just run \"git-split subdir\",\n> optionally with a newest and oldest commit, and it will output the sha1 of\n> the new top commit for use as the new branch ref.  Remove all other\n> branches, reflogs, and other references to the old commits, and use prune\n> or gc to get rid of old objects.  Repeat as desired for other subdirs.\n\nI have added info about git-split to Git Wiki\n  http://git.or.cz/gitwiki/InterfacesFrontendsAndTools\n\nPlease improve this information, and correct if it is wrong.\n-- \nJakub Narebski\nWarsaw, Poland\nShadeHawk on #git\n"}]}