From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: Re: Any idea why the git repo is so huge Date: Tue, 02 Feb 2010 18:57:00 +0100 Message-ID: References: <4B681AA8.2000308@manor-farm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NcN0G-000313-Vv for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 12:57:33 -0500 Received: from [199.232.76.173] (port=53109 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcN0F-0002zf-5L for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 12:57:31 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NcN09-0003eo-Lj for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 12:57:30 -0500 Received: from lo.gmane.org ([80.91.229.12]:52050) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NcN08-0003eg-IB for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 12:57:24 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NcN06-0004ga-ND for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 18:57:22 +0100 Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Feb 2010 18:57:22 +0100 Received: from rileyrgdev by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Feb 2010 18:57:22 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Leo writes: > On 2010-02-02 12:29 +0000, Ian Barton wrote: >>> >>> The git repo I just checked out a minute ago is 54M, 20 times bigger >>> than the org lisp files. Any idea why it is so large? Thanks. >>> >>> Leo >>> >> Don't forget it has a complete history of all org development since >> the initial import of the source. >> >> You may be able to reduce the size of your local repo by running: >> >> git gc >> >> See http://kernel.org/pub/software/scm/git-core/docs/v1.6.0.6/git-gc.html >> >> Ian. > > Of course. But git is supposed to be very efficient in storing history > and other things. I remembered when it first appeared when Linus was > still maintaining it, it could have the Linux kernel's source tree with > complete history and other things within 1.5 times the size of the net > source. > > Git gc won't help because 54M is the size of the first checkout. > I was under the impression that the one thing that git does not advertise is space efficiency - it stores total file blobs for each and every change. So I think its efficiency is in terms of speed, not in terms of disk usage. And to be honest, if you worry about 54M in a development scenario then I'd be surprised when you consider how cheap disk is these days.