On 2/24/17 10:24 AM, Tom Lane wrote:
Andrew Dunstan <andrew.duns...@2ndquadrant.com> writes:
On 02/24/2017 02:36 AM, Craig Ringer wrote:
On 16 January 2017 at 05:01, Jim Nasby <jim.na...@bluetreble.com> wrote:
git worktree add ../9.6 REL9_6_STABLE
Does this do anythng different from the git contrib script
git-new-workdir that I have been using for quite a long while?
I think it's basically a more formally supported version of the contrib
script. They may have fixed some of the hackier aspects of the contrib
script --- I mind in particular the fact that you need to disable git's
auto-gc activity when you use git-new-workdir, but I don't see any such
restriction in the git-worktree man page.
Haven't tried to switch over myself, but maybe I will at some point.
One thing to be aware of that I discovered: you may not have 2 checkouts
of the same branch, something that is possible with what's currently
documented on the wiki. Since the only pain in the wiki workflow is
setting up a new branch (which I've scripted, attached) I've pretty much
given up on using worktrees.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532)
#!/bin/sh
if [ $# -ne 1 ]; then
echo Error
exit 1
fi
branch=REL`echo $1 | tr . _`_STABLE
mkdir i/$1
git clone --reference postgresql.git -b $branch
git://git.postgresql.org/git/postgresql.git $1
cd $1
ln -s ../i/$i i
cd .git/info
ln -sf ../../../git-info-exclude exclude
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers