From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: Git question. Is there a way of duplicating a git repository? Date: Sat, 14 Nov 2015 12:37:05 -0500 Message-ID: References: <20151114112027.GA2567@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3094\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1447580123 4383 80.91.229.3 (15 Nov 2015 09:35:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Nov 2015 09:35:23 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 15 10:35:15 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 1ZxtiM-00079E-HE for ged-emacs-devel@m.gmane.org; Sun, 15 Nov 2015 10:35:14 +0100 Original-Received: from localhost ([::1]:41395 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxtiL-0008TG-ED for ged-emacs-devel@m.gmane.org; Sun, 15 Nov 2015 04:35:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxelD-0006lj-3g for emacs-devel@gnu.org; Sat, 14 Nov 2015 12:37:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZxelA-0004Nh-9K for emacs-devel@gnu.org; Sat, 14 Nov 2015 12:37:10 -0500 Original-Received: from mail-qk0-x234.google.com ([2607:f8b0:400d:c09::234]:36554) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxelA-0004NC-5d for emacs-devel@gnu.org; Sat, 14 Nov 2015 12:37:08 -0500 Original-Received: by qkda6 with SMTP id a6so3339536qkd.3 for ; Sat, 14 Nov 2015 09:37:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=OsLHIp/E/+v43t0w8KkPtZsS+FtBLJQEkfV8felevrc=; b=LVO114E3LiWzI9S8Tg8lJd8ZMmB1Lfd7yTfl7DWEECKeQKU4OmRGvyT5Yh3W90EGA/ a16SfapDoxNKVRulJInaJWyj8zDb3i2YrwUDCCnr4BFToLk3srtzN6psqwO/GH5jIQjH KTM40J2kDFU5lf3QyTPREmD6ismNJ9bGX4/JPo6Tpr9OhqOnuPniPgv4FcWiVS5VpoTc 23piCN5Ul+Nqpp1vFFwna5gFMrkiupytlYFwpBJkpvsX49DcmCI4PcGygAe+CJNYTUVr wzLNof/XLhAzUAYR6EahBubNF8smv8nBzurF/KfyQ80l+wj0D+jpyK4PSrMBsyKAa/NV hTaw== X-Received: by 10.140.16.21 with SMTP id 21mr28212103qga.87.1447522627541; Sat, 14 Nov 2015 09:37:07 -0800 (PST) Original-Received: from [10.0.1.23] (c-71-58-212-112.hsd1.pa.comcast.net. [71.58.212.112]) by smtp.gmail.com with ESMTPSA id 76sm6682254qgo.32.2015.11.14.09.37.05 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 14 Nov 2015 09:37:06 -0800 (PST) In-Reply-To: <20151114112027.GA2567@acm.fritz.box> X-Mailer: Apple Mail (2.3094) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c09::234 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:194482 Archived-At: On Nov 14, 2015, at 6:20 AM, Alan Mackenzie wrote: > Now that we've cut the emacs-25 release branch, I'd like to have a > distinct repository for this. > I could simply download another copy from savannah, but this would > (presumably) be a distinct copy, rather than hard linking the = repository > files. This would cost me disk (and backup) space. >=20 > Or I could clone my master repository to make emacs-25. But this = would > make the new repo firmly subordinate to the master repo, rather than > directly with savannah. How would it be subordinate? A full clone is just that: a deep copy, with no dependency implied. You = can push and pull entirely independently. It=E2=80=99s the same as = downloading another copy. Indeed, that=E2=80=99s what I would call =E2=80=9Cdistinct=E2=80=9D. > So, is there any convenient way of duplicating a repo (using hard = links, > and preserving config info)? If you are looking for a distinct working directory, but not a distinct = repository, =E2=80=9Cgit new-workdir=E2=80=9D is what you want. The = actual repository is locally shared, but you can have a second (and = third) working directory, which typically will hold another branch. It=E2=80=99s not what I would call =E2=80=9Cdistinct repository=E2=80=9D, = but it=E2=80=99s a distinct directory hard-linked against the original = repository.=