Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictoria Dye <vdye@github.com>2022-05-11 02:32:29 +0300
committerJunio C Hamano <gitster@pobox.com>2022-05-11 02:45:12 +0300
commitcfde4cd6ffdca7670b62a292b144425767fb1759 (patch)
tree5e5e9d1c3d621b56fab250478b3d46ad02baa484 /sparse-index.c
parent3a58792adece081ee84e9827c4d90daf759ceb76 (diff)
sparse-index: expose 'is_sparse_index_allowed()'
Expose 'is_sparse_index_allowed()' publicly so that it may be used by callers outside of 'sparse-index.c'. While no such callers exist yet, it will be used in a subsequent commit. Signed-off-by: Victoria Dye <vdye@github.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sparse-index.c')
-rw-r--r--sparse-index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sparse-index.c b/sparse-index.c
index 8636af72de..ffbab7d35f 100644
--- a/sparse-index.c
+++ b/sparse-index.c
@@ -118,7 +118,7 @@ static int index_has_unmerged_entries(struct index_state *istate)
return 0;
}
-static int is_sparse_index_allowed(struct index_state *istate, int flags)
+int is_sparse_index_allowed(struct index_state *istate, int flags)
{
if (!core_apply_sparse_checkout || !core_sparse_checkout_cone)
return 0;