]> git.ipfire.org Git - thirdparty/git.git/commit - read-cache.c
sparse-index: add 'sdir' index extension
authorDerrick Stolee <dstolee@microsoft.com>
Tue, 30 Mar 2021 13:10:54 +0000 (13:10 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Mar 2021 19:57:46 +0000 (12:57 -0700)
commitcd42415fb4c9680f308ebf8f9f85ba90ae6014be
tree8937e603c8fc93ff887578f6053817c6148ae5c4
parent836e25c51b20c1f1d122dc17a1c57dad15ff5854
sparse-index: add 'sdir' index extension

The index format does not currently allow for sparse directory entries.
This violates some expectations that older versions of Git or
third-party tools might not understand. We need an indicator inside the
index file to warn these tools to not interact with a sparse index
unless they are aware of sparse directory entries.

Add a new _required_ index extension, 'sdir', that indicates that the
index may contain sparse directory entries. This allows us to continue
to use the differences in index formats 2, 3, and 4 before we create a
new index version 5 in a later change.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/technical/index-format.txt
read-cache.c