threads / discuss / 12379

When to repack?

Subject: When to repack?

## tl;dr

4 messages between Feb 29, 2008 and Mar 1, 2008.

replies: 3people: 4as markdown or json

Paul Gardiner· Feb 29, 2008, 10:55 UTC · lore

There's advantage to repacking a repository after using git-fast-import. If that repacked repository is then git-pushed to another, is there any point in repacking the other afterwards? I'm guessing not, but just checking.

P.
Karl Hasselström· Feb 29, 2008, 11:47 UTC · re: Paul Gardiner · lore

Re: When to repack?

On 2008-02-29 10:55:41 +0000, Paul Gardiner wrote:
> There's advantage to repacking a repository after using
> git-fast-import. If that repacked repository is then git-pushed to
> another, is there any point in repacking the other afterwards? I'm
> guessing not, but just checking.

No, there isn't. The pack is essentially sent unmodified over the wire. (IIRC, packs were originally conceived as a way of reducing transfer bandwidth, and were later adopted for on-disk storage as well. But I might be mistaken.)

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Jakub Narebski· Feb 29, 2008, 13:22 UTC · re: Paul Gardiner · lore

Re: When to repack?

Paul Gardiner <osronline@glidos.net> writes:
> There's advantage to repacking a repository after using git-fast-import.
> If that repacked repository is then git-pushed to another, is there
> any point in repacking the other afterwards? I'm guessing not, but
> just checking.
Yes, there is, to concatenate packs. But this should be less urgent.
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Xavier Maillard· Mar 1, 2008, 01:00 UTC · re: Paul Gardiner · lore

Re: When to repack?

   There's advantage to repacking a repository after using git-fast-import.
   If that repacked repository is then git-pushed to another, is there
   any point in repacking the other afterwards? I'm guessing not, but
   just checking.
I am not an expert but I would not do it afterwards too.
	Xavier
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org

← back to recent threads