On Mon, Dec 29, 2014 at 7:58 PM, Ido Rosen <i...@kernel.org> wrote: > On Mon, Dec 29, 2014 at 7:54 PM, Ido Rosen <i...@kernel.org> wrote: >> git help subtree. >> >> On Mon, Dec 29, 2014 at 7:53 PM, Phillip Smith <fuka...@gmail.com> wrote: >>> For those of us already storing our packages in git[0], has anyone got some >>> documentation/pointers for how to handle migrating from having 1 big git >>> repository to dozens of individual git repositories? >>> >>> Do we just blat away our current repository and re-initialize each package >>> as it's own repository or is there a smarter way? > > "git help subtree", but to clarify further: I do this right now in > https://github.com/ido/packages-archlinux > > ...I have a script prepared using git subtree and a filter-branch > command to split out the /aur directory in that repo into multiple > packages. I'm testing it locally. The best part is that I can still > maintain the individual package repos separately from the main one, > and keep a separate git repository with all my individual repos as > submodules, then just use "git submodule foreach git subtree pull > --squash" (or similar) to update all the packages at once and only if > those subfolders were changed in the one-big-repository > (ido/packages-archlinux.git) >
(...which can be done as a post-commit or post-receive hook in the master repo.) >>> >>> [0] https://github.com/fukawi2/aur-packages