A branch from a sub-directory?

Stephen J. Turnbull stephen at xemacs.org
Mon Feb 16 02:21:29 GMT 2009


Stefan Monnier writes:

 > > Is there a way to create a branch from that directory without bringing in
 > > the complete history of the previous branch but only the history of files
 > > in that subdirectory?

 > - reconstruct a new history via a process similar to "rebase".  This way
 >   you can get rid of the history part that only affects "unrelated"
 >   files, but you get a new branch unrelated to the old one.

This should be do-able in git with git-filter-branch.  I don't think
I'd want to try it in any other VCS (well, maybe CVS ;-).



More information about the bazaar mailing list