First page Back Continue Last page Overview Text

Notes:


But once you start tranforming the second snapshot you discover something:

Many of the files and directories are unchanged from the first snapshot, and they therefore end up with the same SHA1. But since they have the same SHA1, they already exist in the objects directory, so you don't have to copy them in there.

Imagine two sequential snapshots in which only a single file in the root directory has changed. If the snapshots both contain 10 directories and 100 files, the transformation process will create 10 trees and 100 blobs from the first snapshot but only one new blob and one new tree from the second snapshot!