Re: [HACKERS] FYI: git worktrees as replacement for "rsync the CVSROOT" - Mailing list pgsql-hackers

From Craig Ringer
Subject Re: [HACKERS] FYI: git worktrees as replacement for "rsync the CVSROOT"
Date
Msg-id CAMsr+YGgx5N1q8cnZx=acdzYU96wd+UCnzNo3V4C_ARCAq9PoA@mail.gmail.com
Whole thread Raw
In response to [HACKERS] FYI: git worktrees as replacement for "rsync the CVSROOT"  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Responses Re: [HACKERS] FYI: git worktrees as replacement for "rsync theCVSROOT"
List pgsql-hackers
On 16 January 2017 at 05:01, Jim Nasby <Jim.Nasby@bluetreble.com> wrote:
> Not sure how many people still use [1], as referenced by our git wiki[2],
> but it appears git worktrees are a viable replacement for that technique. In
> short, if you're already in your checkout:
>
> git worktree add ../9.6 REL9_6_STABLE
>
> would give you a checkout of 9.6 in the ../9.6 directory.
>
> BTW, I learned about this from this "git year in review" article[3].

Looks handy enough to merit adding to the Pg developer FAQ. Please?

It looks cleaner than my current approach of doing a local clone or
re-cloning from upstream with a local repo as a --reference .

-- Craig Ringer                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Craig Ringer
Date:
Subject: Re: [HACKERS] Make subquery alias optional in FROM clause
Next
From: "David G. Johnston"
Date:
Subject: Re: [HACKERS] UPDATE of partition key