Ticket #5880 (closed feature request: fixed)
Add sync-all new-workdir
|Reported by:||tibbe||Owned by:||simonmar|
|Type of failure:||None/Unknown||Difficulty:||Unknown|
|Test Case:||Blocked By:|
The attached patch implements a new sync-all command, which calls git-new-workdir. 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. git status.)
- 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
Note: 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.