4

When I executed git push, it displayed following output

Counting objects: 214, done.                               
Delta compression using up to 4 threads.                   
Compressing objects: 100% (213/213), done.                 
Writing objects:  26% (57/214), 27.44 MiB | 60.00 KiB/s 

According to this it is clear that Git uses delta compression method. How does delta compression work ? can it be used for other applications as well ? If yes, please suggest such applications.

Ani
  • 2,848
  • 2
  • 24
  • 34
  • 2
    http://stackoverflow.com/a/8198276/1256452 (but no details there either); more details at http://stackoverflow.com/a/9478566/1256452. This code is heavily customized for Git: you could extract it and try to use it elsewhere but you would probably be better off using libxdiff. – torek Apr 22 '17 at 04:22

1 Answers1

1

I didn't go into the details of the algorithms, but you can find useful information in the manual CH 10 and here.

Asking google, I also found this

I hope that helps!

Community
  • 1
  • 1
Christoph
  • 6,841
  • 4
  • 37
  • 89
  • Thank you, Links provided in answer were helpful. It gave me an overview of `Delta Compression` and `packfiles`. But didn't gave me a clear idea of how it works as mentioned in the question. – Ani Apr 22 '17 at 07:52
  • But what would you expect? A tutorial? I think this is impossible here... ;-) – Christoph Apr 22 '17 at 14:14