From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Hommey Subject: Re: Why repository grows after "git gc"? / Purpose of *.keep files? Date: Mon, 12 May 2008 23:08:07 +0200 Organization: glandium.org Message-ID: <20080512210807.GA22221@glandium.org> References: <20080512122900.GA13050@mithlond.arda.local> <20080512155243.GA3592@mithlond.arda.local> <20080512184334.GB5160@mithlond.arda.local> <20080512190946.GC5160@mithlond.arda.local> <20080512202414.GA8620@mithlond.arda.local> <20080512210304.GA17352@glandium.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Nicolas Pitre , Johannes Schindelin , git@vger.kernel.org To: Teemu Likonen X-From: git-owner@vger.kernel.org Mon May 12 23:09:11 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1JvfGg-0002gm-PU for gcvg-git-2@gmane.org; Mon, 12 May 2008 23:09:11 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756232AbYELVIV (ORCPT ); Mon, 12 May 2008 17:08:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756062AbYELVIV (ORCPT ); Mon, 12 May 2008 17:08:21 -0400 Received: from vuizook.err.no ([194.24.252.247]:60585 "EHLO vuizook.err.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755920AbYELVIU (ORCPT ); Mon, 12 May 2008 17:08:20 -0400 Received: from cha92-13-88-165-248-19.fbx.proxad.net ([88.165.248.19] helo=jigen) by vuizook.err.no with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.67) (envelope-from ) id 1JvfFk-0005aG-4P; Mon, 12 May 2008 23:08:18 +0200 Received: from mh by jigen with local (Exim 4.69) (envelope-from ) id 1JvfFf-0005o7-FN; Mon, 12 May 2008 23:08:07 +0200 Content-Disposition: inline In-Reply-To: <20080512210304.GA17352@glandium.org> X-GPG-Fingerprint: A479 A824 265C B2A5 FC54 8D1E DE4B DA2C 54FD 2A58 User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Spam-Status: (score 0.1): No, score=0.1 required=5.0 tests=RDNS_DYNAMIC autolearn=disabled version=3.2.3 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Mon, May 12, 2008 at 11:03:04PM +0200, Mike Hommey wrote: > On Mon, May 12, 2008 at 11:24:14PM +0300, Teemu Likonen wrote: > > But I have experienced the same earlier with some other post-1.5.5 > > version so I believe you can reproduce this yourself. After cloning > > Linus's linux-2.6 repo its .git directory weights 209MB. After single > > "git pull" and "git gc" it was 298MB in my test. > > I noticed that a while ago: when repacking multiple packs when one has a > .keep file, the resulting additional pack contains too many blobs and > trees, contrary to when only packing loose objects: (...) That is, it seems to also contain all the blobs and subtrees for all the commits the pack contains, even when they already are in the pack having a .keep file. Mike