From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Multiple checkout copies Date: Mon, 02 Feb 2015 17:32:44 -0800 Organization: UCLA Computer Science Department Message-ID: <54D0253C.2040002@cs.ucla.edu> References: <54CE9E10.5000709@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1422927179 9849 80.91.229.3 (3 Feb 2015 01:32:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Feb 2015 01:32:59 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 03 02:32:59 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 1YISMJ-0000s2-I8 for ged-emacs-devel@m.gmane.org; Tue, 03 Feb 2015 02:32:55 +0100 Original-Received: from localhost ([::1]:57383 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YISMI-0001TA-Uz for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2015 20:32:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YISME-0001Ow-Kr for emacs-devel@gnu.org; Mon, 02 Feb 2015 20:32:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YISMA-0000It-KQ for emacs-devel@gnu.org; Mon, 02 Feb 2015 20:32:50 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:58935) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YISMA-0000Ie-CJ; Mon, 02 Feb 2015 20:32:46 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id D9705A60025; Mon, 2 Feb 2015 17:32:44 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S3Umz-nwcnLV; Mon, 2 Feb 2015 17:32:44 -0800 (PST) Original-Received: from [192.168.1.9] (pool-173-55-11-52.lsanca.fios.verizon.net [173.55.11.52]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 47ADDA60020; Mon, 2 Feb 2015 17:32:44 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 131.179.128.62 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:182303 Archived-At: Richard Stallman wrote: > How does one get from the one t the other? I am lost. For the first copy, you need to get a local copy of the repository, something I assume you've already done. Something like this: $ git clone rms@git.sv.gnu.org:/srv/git/emacs.git master Cloning into 'master'... remote: Counting objects: 721802, done. remote: Compressing objects: 100% (133955/133955), done. remote: Total 721802 (delta 589941), reused 718606 (delta 587176) Receiving objects: 100% (721802/721802), 191.46 MiB | 4.04 MiB/s, done. Resolving deltas: 100% (589941/589941), done. Checking connectivity... done. This first step is expensive, since it copies the repository across the network into the subdirectory 'master', and creates working files there too. On my home GNU/Linux desktop, this took 4.6 minutes and the resulting directory consumed 365 MB of disk space (222 MB for the repository and 144 MB for the working files). For the second copy, you clone the repository locally, like this: $ git clone master devel Cloning into 'devel'... done. This second step is cheap: it took less than a second on my desktop. It copies working files into the subdirectory 'devel', but it hard-links the repository rather than copying it, so it consumes only 144 MB (i.e., enough for the second copy of the working files). Although the two subdirectories have logically independent repositories, the second repository costs almost nothing to create.