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: Tue, 03 Feb 2015 18:30:36 +0000 Message-ID: <87bnlahmpf.fsf@violet.siamics.net> References: <54CE9E10.5000709@cs.ucla.edu> <87sieogqgf.fsf@violet.siamics.net> <87386ncnz3.fsf@Rainer.invalid> <87oapb2t2e.fsf@fencepost.gnu.org> <87y4ofb1gt.fsf@Rainer.invalid> <87fvan2l29.fsf@fencepost.gnu.org> <87fvanglpz.fsf@violet.siamics.net> <87bnlb2j48.fsf@fencepost.gnu.org> 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 1422988306 6575 80.91.229.3 (3 Feb 2015 18:31:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Feb 2015 18:31:46 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 03 19:31:38 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 1YIiG7-0005kP-Rc for ged-emacs-devel@m.gmane.org; Tue, 03 Feb 2015 19:31:35 +0100 Original-Received: from localhost ([::1]:60846 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIiG7-0002zD-Bl for ged-emacs-devel@m.gmane.org; Tue, 03 Feb 2015 13:31:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIiFp-0002wV-FW for emacs-devel@gnu.org; Tue, 03 Feb 2015 13:31:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIiFo-0001wy-5Q for emacs-devel@gnu.org; Tue, 03 Feb 2015 13:31:17 -0500 Original-Received: from fely.am-1.org ([2a01:4f8:d15:1b86::2]:37687) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIiFn-0001qG-Su for emacs-devel@gnu.org; Tue, 03 Feb 2015 13:31:16 -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=sQMJfJvxAd2RFMPdJ+A0wgTvbqBErPacEIOdY6WXAmc=; b=PqJqsvbSl6VasAfwArO1z11Hi4dFq12czROPD1zlPLxoquaT18h3Cr5tXc3xYezqpP9I9ORPswjFVMxJM1QkpQ1/rKjTUPNo/xk7dgQebXEkHiQXNRbC30vWDPX7DOkjLsoqZfM643baykc85WmTw1DKZBBA8Dv25/y9FzvMs2A=; 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 1YIiFN-0004vT-AF for emacs-devel@gnu.org; Tue, 03 Feb 2015 18:30:50 +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 1YIiFB-0006Be-Cv for emacs-devel@gnu.org; Wed, 04 Feb 2015 01:30:37 +0700 Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: <87bnlb2j48.fsf@fencepost.gnu.org> (David Kastrup's message of "Tue, 03 Feb 2015 14:57:11 +0100") 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:182336 Archived-At: >>>>> David Kastrup writes: >>>>> Ivan Shmakov writes: >>>>> David Kastrup writes: [=E2=80=A6] >>> No, it isn't. You can have both local branches and remote branches >>> removed from the cloned bare repo while your --shared clone still >>> uses objects that are no longer retained in the first clone. >> =E2=80=9CCan=E2=80=9D in the sense that you /can/ use Git to shoot your= self in the >> foot, or are there cases where git-fetch(1) would indeed autoremove >> any branch references from a bare repository? > If you want to mirror the upstream, you'll use "git fetch -p" in > order to have branches that are removed upstream to get deleted in > the mirror as well. And why would I want that, especially given that I=E2=80=99m already aware that a. some of the objects may be used elsewhere (and thus such an operation would be potentially unsafe) and b. the packs received from the remote are likely to contain a mix of Git objects belonging to both removed and extant branches, and it would thus /not/ be possible to remove them anyway? And as for repacking such a mirror from time to time, =E2=80=94 it=E2=80= =99s going to be a sure nuisance due to backup reasons, etc. > Even without -p, references in frequently rewritten work branches > (like Git's pu or next branches) will disappear eventually. Do fast-forward updates (which git-fetch(1) defaults to) ever result in dangling Git objects? Also, I=E2=80=99m typically interested in mirroring just a few branches (mostly =E2=80=98master=E2=80=99 and the latest stable, if any.) Per my experience, such branches rarely (if ever) get =E2=80=9Crewritten.=E2=80=9D [=E2=80=A6] --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A