This change is the first in a series to add support for git's multi-pack-index. This should speed up large repositories significantly. Part of: #5399