{"thread":{"id":"19833","subject":"Transplant branch from one repo to another","startedAt":"2009-06-16T21:30:34Z","lastAt":"2009-06-16T21:30:34Z","messageCount":1,"participants":["Aneurin Price"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"116445","messageId":"501db8660906161430o25a0c18aw41758390dc171702@mail.gmail.com","threadId":"19833","inReplyTo":null,"subject":"Transplant branch from one repo to another","fromName":"Aneurin Price","fromEmail":"aneurin.price@gmail.com","sentAt":"2009-06-16T21:30:34Z","receivedAt":"2009-06-16T21:30:34Z","isPatch":false,"sender":{"key":"aneurin.price@gmail.com","avatar":null},"body":"Hello all,\n\nI have a repository cloned from SVN using 'git svn clone http://servername/path\n-T trunk -b branches -t tags', or thereabouts, and I've since realised that I\nwould have been better off with 'git svn clone\nhttp://servername/path/trunk/subdir', as I don't really care about any other\nbranches, or about the contents of the svn repository outside of 'subdir'.\n\nI have one branch from trunk in which I've been working, which includes one\nmerge from trunk. I'm interested in how I might be able to get the content of\nthat branch and transplant it onto the new svn clone, starting at the equivalent\nparent commit (ie. the same svn revision). The merge was only a few commits away\nfrom HEAD, so I can manually redo that last part if it complicates things too\nmuch.\n\nI've been thinking about something involving 'filter-branch\n--subdirectory-filter' followed by a fast-export on the source, and then a\nfast-import on the destination, but I'm not sure I'm going about this the right\nway and would appreciate any advice anyone can give me.\n\nSo, does anybody have any suggestions for how I should do this?\nThank you for your time,\nNye\n"}]}