Skip to contentSkip to conversation

When to repack?

DISCUSSION Paul Gardiner 4 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw
Quoted 4 lines · Paul Gardiner

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.)

Signature · 2 lines
Karl Hasselström, [email protected]
      www.treskal.com/kalle
#2 lore raw
In reply to Paul Gardiner

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

Signature · 3 lines
http://www.gnu.org
http://www.april.org
http://www.lolica.org
#3 lore raw
In reply to Paul Gardiner
Quoted 4 lines · Paul Gardiner

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.

Signature · 3 lines
Jakub Narebski
Poland
ShadeHawk on #git