]> git.ipfire.org Git - thirdparty/git.git/commit
sparse-index: design doc and format update
authorDerrick Stolee <dstolee@microsoft.com>
Tue, 30 Mar 2021 13:10:44 +0000 (13:10 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Mar 2021 19:57:44 +0000 (12:57 -0700)
commit0ad6090bddbf01cb5778dec726fe8e799d340a6f
treec3ef9f765d3e133fd14cd62e62ab02117a46dcdf
parent47957485b3b731a7860e0554d2bd12c0dce1c75a
sparse-index: design doc and format update

This begins a long effort to update the index format to allow sparse
directory entries. This should result in a significant improvement to
Git commands when HEAD contains millions of files, but the user has
selected many fewer files to keep in their sparse-checkout definition.

Currently, the index format is only updated in the presence of
extensions.sparseIndex instead of increasing a file format version
number. This is temporary, and index v5 is part of the plan for future
work in this area.

The design document details many of the reasons for embarking on this
work, and also the plan for completing it safely.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/technical/index-format.txt
Documentation/technical/sparse-index.txt [new file with mode: 0644]