On 12/22/13 11:02 AM, Mark Allen wrote:
I haven't tried this (yet) but it looks like a promising solution...

http://gbayer.com/development/moving-files-from-one-git-repository-to-another-preserving-history/



It turned out that for my purpose I only needed some of the instructions at that site.

It took me two tries, but on the second, these commands sufficed:

  540  git clone git://perl5.git.perl.org/perl.git perl4podhtml
  541  cd perl4podhtml/
  542  git remote rm origin
  543  vi .git/config
  544  git filter-branch --subdirectory-filter ext/Pod-Html/ -- --all

At this point, the top-level directory merely contained the directories formerly found in ext/Pod-Html/. And 'git log' and 'git blame' indicated that the history had been preserved. So I quit right there.

After the usual finagling and some renaming, I was able to put a repository on github:

https://github.com/jkeenan/opodhtml

It currently has two branches: 'blead', which should represent the state of ext/Pod-Html in Perl 5 blead as of today; 'master', which will be my master branch for refactoring, adding tests, giving Pod-Html the old Phalanx treatment.

Thank you very much.
Jim Keenan

Reply via email to