git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-repack made my pack 317x larger...

From
Nicolas Pitre <nico@cam.org>
Date
Jun 15, 2007, 13:39 UTC
Message-ID
<alpine.LFD.0.99.0706150935530.5651@xanadu.home>
In-Reply-To
<20070615085057.5706.qmail@science.horizon.com>
On Fri, 15 Jun 2007, linux@horizon.com wrote:
Show 38 quoted lines
> > ~/tmp$ git clone --reference /usr/src/linux -n hwmon-2.6.old hwmon-2.6
> > Initialized empty Git repository in /home/linux/tmp/hwmon-2.6/.git/
> > remote: Generating pack...
> > remote: Done counting 124 objects.
> > remote: Deltifying 124 objects...
> > remote:  100% (124/124) done
> > Indexing 124 objects...
> > remote: Total 124 (delta 83), reused 97 (delta 75)
> >  100% (124/124) done
> > Resolving 83 deltas...
> >  100% (83/83) done
> > ~/tmp$ rm -rf hwmon-2.6.olf
> > ~/tmp$ cd hwmon-2.6
> > ~/tmp/hwmon-2.6$ ls -l .git/objects/pack/
> > total 168
> > -r--r--r-- 1 linux users   4040 Jun 15 03:44 pack-e4de475aa6c82099b4a4a8f6f410dcc316c7cf19.idx
> > -r--r--r-- 1 linux users 161548 Jun 15 03:44 pack-e4de475aa6c82099b4a4a8f6f410dcc316c7cf19.pack
> 
> Much better!  But since that's only a few objects, let's repack them even tighter...
> 
> > ~/tmp/hwmon-2.6$ git-repack -a -d -f --window=50
> > Generating pack...
> > Done counting 18090 objects.
> > Deltifying 18090 objects...
> >  100% (18090/18090) done
> > Writing 18090 objects...
> >  100% (18090/18090) done
> > Total 18090 (delta 2465), reused 7876 (delta 0)
> > Pack pack-1af4ab6620f71733f17b16d69a89b6741e2c7fe3 created.
> > Removing unused objects 100%...
> > Done.
> > ~/tmp/hwmon-2.6$ ls -l .git/objects/pack/
> > total 50620
> > -r--r--r-- 1 linux users   435224 Jun 15 04:00 pack-1af4ab6620f71733f17b16d69a89b6741e2c7fe3.idx
> > -r--r--r-- 1 linux users 51333891 Jun 15 04:00 pack-1af4ab6620f71733f17b16d69a89b6741e2c7fe3.pack
> 
> Uh... what happened?  It's not a full kernel clone, but it's a lot more
> objects than I expected.  Where did all the extra objects come from?
Maybe you want to add -l as well to your git-repack invocation.
Nicolas
Previous: linux@horizon.comNext: linux@horizon.com
Message 2 of 5 in “git-repack made my pack 317x larger...”
  1. linux@horizon.comJun 15, 2007
  2. Nicolas PitreJun 15, 2007
  3. linux@horizon.comJun 15, 2007
  4. Benjamin SergeantJun 15, 2007
  5. Nicolas PitreJun 15, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.