threads / discuss / 19854

RFH: Unable to get one big pack

Subject: RFH: Unable to get one big pack

## tl;dr

4 messages between Jun 18, 2009 and Jun 18, 2009.

replies: 3people: 3as markdown or json

Marco Costalba· Jun 18, 2009, 14:55 UTC · lore

Sorry for the silly question, but I have tried anything to get one big pack instead of many objects.

I tried git repack but with no success:
$ git repack -adf
Counting objects: 3317, done.
Compressing objects: 100% (3317/3317), done.
Writing objects: 100% (3317/3317), done.
Total 3317 (delta 2607), reused 0 (delta 0)
$ ls -R .git/objects | wc -l
  519
$

Thanks in advance for your kind help Marco

BTW I have trid also git prune in any way but without succes either.
Alex Riesen· Jun 18, 2009, 15:40 UTC · re: Marco Costalba · lore

Re: RFH: Unable to get one big pack

2009/6/18 Marco Costalba <mcostalba@gmail.com>:
Show 13 quoted lines
> Sorry for the silly question, but I have tried anything to get one big
> pack instead of many objects.
>
> I tried git repack but with no success:
>
> $ git repack -adf
> Counting objects: 3317, done.
> Compressing objects: 100% (3317/3317), done.
> Writing objects: 100% (3317/3317), done.
> Total 3317 (delta 2607), reused 0 (delta 0)
> $ ls -R .git/objects | wc -l
>  519
> $
git gc && git prune
Marco Costalba· Jun 18, 2009, 17:13 UTC · re: Alex Riesen · lore

Re: RFH: Unable to get one big pack

On Thu, Jun 18, 2009 at 16:40, Alex Riesen<raa.lkml@gmail.com> wrote:
Show 17 quoted lines
> 2009/6/18 Marco Costalba <mcostalba@gmail.com>:
>> Sorry for the silly question, but I have tried anything to get one big
>> pack instead of many objects.
>>
>> I tried git repack but with no success:
>>
>> $ git repack -adf
>> Counting objects: 3317, done.
>> Compressing objects: 100% (3317/3317), done.
>> Writing objects: 100% (3317/3317), done.
>> Total 3317 (delta 2607), reused 0 (delta 0)
>> $ ls -R .git/objects | wc -l
>>  519
>> $
>
> git gc && git prune
>
Thanks to you and Nicolas for the hint. It worked.
If I can make a suggestion: description of git-repack is a bit misleading
"git-repack(1)

This script is used to combine all objects that do not currently reside in a "pack", into a pack. It can also be used to re-organize existing packs into a single, more efficient pack."

Nicolas Pitre· Jun 18, 2009, 16:03 UTC · re: Marco Costalba · lore

Re: RFH: Unable to get one big pack

On Thu, 18 Jun 2009, Marco Costalba wrote:
Show 13 quoted lines
> Sorry for the silly question, but I have tried anything to get one big
> pack instead of many objects.
> 
> I tried git repack but with no success:
> 
> $ git repack -adf
> Counting objects: 3317, done.
> Compressing objects: 100% (3317/3317), done.
> Writing objects: 100% (3317/3317), done.
> Total 3317 (delta 2607), reused 0 (delta 0)
> $ ls -R .git/objects | wc -l
>   519
> $
The -d flag to 'git repack' only deletes old packs.

If you want to remove redundant loose objects then you need to run 'git prune'.

Nicolas

← back to recent threads