Re: [HACKERS] FYI: git worktrees as replacement for "rsync theCVSROOT"

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] FYI: git worktrees as replacement for "rsync theCVSROOT"
Дата
Msg-id 20170223150427.GI20486@momjian.us
обсуждение исходный текст
Ответ на [HACKERS] FYI: git worktrees as replacement for "rsync the CVSROOT"  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Ответы Re: [HACKERS] FYI: git worktrees as replacement for "rsync the CVSROOT"  (ilmari@ilmari.org (Dagfinn Ilmari Mannsåker))
Список pgsql-hackers
On Sun, Jan 15, 2017 at 03:01:47PM -0600, Jim Nasby 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].
> 
> 1: https://www.postgresql.org/message-id/20090602162347.GF23972@yugib.highrise.ca
> 2: https://wiki.postgresql.org/wiki/Working_with_Git#Continuing_the_.22rsync_the_CVSROOT.22_workflow
> 3: https://hackernoon.com/git-in-2016-fad96ae22a15?imm_mid=0ec3e0&cmp=em-prog-na-na-newsltr_20170114#.shgj609ad

Uh, I don't see this in git 2.1.4:
$ git worktreegit: 'worktree' is not a git command. See 'git --help'.

which is in Debian Jessie.  This reports worktree was added in 2.5,
released in July 2015:
https://developer.atlassian.com/blog/2015/10/cool-features-git-2.x/

I am glad the git team has seen the value in work trees and it will be
good to use a more officially supported method in the future.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: [HACKERS] user mapping messages
Следующее
От: Corey Huinker
Дата:
Сообщение: Re: [HACKERS] \if, \elseif, \else, \endif (was Re: PSQL commands:\quit_if, \quit_unless)