summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2021-03-30 13:10:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-03-30 19:57:47 (GMT)
commit58300f4743231724686d9ddf481aeefa4f90d2f7 (patch)
tree0a73a7f7312d021f7891107d27f2ac0161e62202 /cache.h
parent0938e6ff552510d4e6e495f062a9fab3e932178a (diff)
downloadgit-58300f4743231724686d9ddf481aeefa4f90d2f7.zip
git-58300f4743231724686d9ddf481aeefa4f90d2f7.tar.gz
git-58300f4743231724686d9ddf481aeefa4f90d2f7.tar.bz2
sparse-index: add index.sparse config option
When enabled, this config option signals that index writes should attempt to use sparse-directory entries. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 74b43aa..8aede37 100644
--- a/cache.h
+++ b/cache.h
@@ -1059,6 +1059,7 @@ struct repository_format {
int worktree_config;
int is_bare;
int hash_algo;
+ int sparse_index;
char *work_tree;
struct string_list unknown_extensions;
struct string_list v1_only_extensions;