Add sync-all new-workdir
The attached patch implements a new
sync-all command, which calls
git-new-workdir lets you create separate working directories, all connected to the same repository. Separate working directories can be used to:
- Store repos on NFS, where they can be easily backed up, but store the checked out code on local disk, speeding up builds and many git operations (e.g.
- Implement separate build trees. While full clones can be used to implement build trees, they are somewhat more heavyweight to use (e.g. you need to shuffle patches between them.)
Usage: sync-all new-workdir <new_workdir> [<branch>] Example: sync-all ~/src/ghc-validate
git-new-workdir is typically not on the user's PATH after a standard git installation. It can be found in the
contrib directory in most git distributions.
Feel free to edit the patch. My perl-fu is weak.