Carsten Fuchs wrote in message : >> and transform them into having the >> structure you want. See the man page for filter-branch, there's an example for "/To move >> the whole tree into a subdirectory/". > > Ahh!! Thank you very much! > That was the crucial step that I was missing before! Hi Carsten, if I have understood your problem correctly, it looks like the git subtree script could help you a lot. It is in the contrib folder of the git source code, and you can also find it in github: https://github.com/apenwarr/git-subtree Quoting the doc: --- DESCRIPTION ----------- Subtrees allow subprojects to be included within a subdirectory of the main project, optionally including the subproject's entire history. For example, you could include the source code for a library as a subdirectory of your application. --- This script is a wrapper around the subtree merge strategy, which is explained here https://help.github.com/articles/working-with-subtree-merge http://www.kernel.org/pub/software/scm/git/docs/howto/using-merge-subtree.html
> But I'll try now, and report how it went. With the hand-work involved, it > will probably take me a few days to finish, though. Unfortunately, the above proposition will only help you track vendor branches after you have done the conversion, but not in the conversion itself. For that it looks like you'll have to use graft (personally I would use git filter-branch to rewrite the commits), and I don't know how easily scriptable this will be. Cheers, Damien -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To view this discussion on the web visit https://groups.google.com/d/msg/git-users/-/sEUGTWrFJf4J. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
