Ticket #5880 (closed feature request: fixed)

Opened 15 months ago

Last modified 15 months ago

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

0001-Add-sync-all-new-workdir.patch Download (1.7 KB) - added by tibbe 15 months ago.

Change History

Changed 15 months ago by tibbe

Changed 15 months ago by tibbe

  • status changed from new to patch

Changed 15 months ago by simonmar

  • owner set to simonmar
  • difficulty set to Unknown
  • milestone set to 7.6.1

I'm doing a validate run, so I'll get this one in too.

Changed 15 months ago by simonmar

  • status changed from patch to merge

Pushed:

commit 4bac993e3d00edc0ceac99f4b44ade477ae9aa90

Author: Johan Tibell <johan.tibell@gmail.com>
Date:   Thu Feb 16 19:09:55 2012 -0800

    Add sync-all new-workdir
    
    This command calls git-new-workdir (a separate script in git's contrib
    directory) on all repos.  Useful to create multiple build trees, without
    cloning the repos.
    
    Usage:
      sync-all new-workdir <new_workdir> [<branch>]

Changed 15 months ago by simonmar

  • status changed from merge to closed
  • resolution set to fixed

On second thoughts, we don't need to merge this.

Note: See TracTickets for help on using tickets.