Ticket #5880 (closed feature request: fixed)
Add sync-all new-workdir
| Reported by: | tibbe | Owned by: | simonmar |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.6.1 |
| Component: | Build System | Version: | 7.4.1 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

