From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.devel Subject: Re: Multiple checkout copies Date: Mon, 02 Feb 2015 18:12:43 +0000 Message-ID: <87oapcgp2c.fsf@violet.siamics.net> References: <54CE9E10.5000709@cs.ucla.edu> <87sieogqgf.fsf@violet.siamics.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1422900807 6677 80.91.229.3 (2 Feb 2015 18:13:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2015 18:13:27 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 02 19:13:23 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YILUw-0006pC-DD for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2015 19:13:22 +0100 Original-Received: from localhost ([::1]:55920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YILUv-0003Ju-Nc for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2015 13:13:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YILUY-0003Er-AK for emacs-devel@gnu.org; Mon, 02 Feb 2015 13:13:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YILUT-0003WB-IW for emacs-devel@gnu.org; Mon, 02 Feb 2015 13:12:58 -0500 Original-Received: from fely.am-1.org ([2a01:4f8:d15:1b86::2]:37528) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YILUT-0003Vt-7t for emacs-devel@gnu.org; Mon, 02 Feb 2015 13:12:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=gG54xCf19Ce9s3UVMgP6Ww89ShYzp4Zw+c0AiSHKlj0=; b=A4ZOQ91vCsSGHDrq+tmsq8vgu+iuFSXkwNUXfYQuMRerohvxc7C9pZjZKz09ebwUPnlZXUSdZQWC2b0RjWAbE1kYRWlSqDLrPyGuVOfkwVZTktTvHVTfDRSV+ru65/qBqaJ+qmd9/IqqM5lLlvczIVXpN/fThjLfD4nJ7E3uYKs=; Original-Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YILUR-0000rP-CA for emacs-devel@gnu.org; Mon, 02 Feb 2015 18:12:51 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YILUK-0002M8-6T for emacs-devel@gnu.org; Tue, 03 Feb 2015 01:12:44 +0700 Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: <87sieogqgf.fsf@violet.siamics.net> (Ivan Shmakov's message of "Mon, 02 Feb 2015 17:42:40 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:4f8:d15:1b86::2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:182278 Archived-At: >>>>> Ivan Shmakov writes: [=E2=80=A6] > also setting up .git/objects/info/alternates under the latter > pointing to emacs-1/.git/objects, so that all the Git commits > available under the first are also available under the second. > $ git clone --shared emacs-1 emacs-2 > The branches and tags of these two working copies are entirely > independent, however. > The --shared option is the default when both the source and the > target directories are on the same filesystem. I stand corrected, =E2=80=93 the default in this case is to use hardlinks for the Git objects; no =E2=80=98alternates=E2=80=99 file is inv= olved. Using --shared may be risky, as Git may choose to GC the dangling objects away from emacs-1, not taking into account the possibility of them being used in some other trees. In my case, the source directory is often a =E2=80=9Cbare=E2=80=9D Git repository used= only to mirror the upstream one, and thus it has no =E2=80=9Clocal=E2=80=9D com= mits, which are somewhat likely to become dangling after rebases and such. (And the upstream branches these mirrors track are fast-forward, so git-fetch(1) isn=E2=80=99t going to produce any dangling objects, either.) --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A