summaryrefslogtreecommitdiff
path: root/t/t1007-hash-object.sh
diff options
context:
space:
mode:
authorLibravatar Derrick Stolee <dstolee@microsoft.com>2021-03-30 13:10:47 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-03-30 12:57:45 -0700
commit3964fc2aae7c7420a4c5da1b9530e8e8de1ed367 (patch)
tree6b4872a266678c396757fcaa36c89351671a23b9 /t/t1007-hash-object.sh
parentt1092: clean up script quoting (diff)
downloadtgif-3964fc2aae7c7420a4c5da1b9530e8e8de1ed367.tar.xz
sparse-index: add guard to ensure full index
Upcoming changes will introduce modifications to the index format that allow sparse directories. It will be useful to have a mechanism for converting those sparse index files into full indexes by walking the tree at those sparse directories. Name this method ensure_full_index() as it will guarantee that the index is fully expanded. This method is not implemented yet, and instead we focus on the scaffolding to declare it and call it at the appropriate time. Add a 'command_requires_full_index' member to struct repo_settings. This will be an indicator that we need the index in full mode to do certain index operations. This starts as being true for every command, then we will set it to false as some commands integrate with sparse indexes. If 'command_requires_full_index' is true, then we will immediately expand a sparse index to a full one upon reading from disk. This suffices for now, but we will want to add more callers to ensure_full_index() later. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1007-hash-object.sh')
0 files changed, 0 insertions, 0 deletions