Fix bugs with > 2 GB pack files by filipnavara · Pull Request #634 · dotnet/Nerdbank.GitVersioning (original) (raw)
Ref: https://git-scm.com/docs/pack-format
Observation: length of each object is encoded in a variable length format and is not constrained to 32-bit or anything.
Example: Base offset is 4 000 000 000, delta relative offset would be 3 000 000 000. The computed delta offset would thus be 1 000 000 000. The number 3 000 000 000 must fit in the data type returned here.