Add sync-all new-workdir
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.
Trac metadata
Trac field | Value |
---|---|
Version | 7.4.1 |
Type | FeatureRequest |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Build System |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |