diff options
author | Victoria Dye <vdye@github.com> | 2022-05-11 01:32:29 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-05-11 01:45:12 +0200 |
commit | cfde4cd6ffdca7670b62a292b144425767fb1759 (patch) | |
tree | 5e5e9d1c3d621b56fab250478b3d46ad02baa484 /sparse-index.h | |
parent | stash: integrate with sparse index (diff) | |
download | git-cfde4cd6ffdca7670b62a292b144425767fb1759.tar.xz git-cfde4cd6ffdca7670b62a292b144425767fb1759.zip |
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.h')
-rw-r--r-- | sparse-index.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sparse-index.h b/sparse-index.h index 633d4fb7e3..f57c65d972 100644 --- a/sparse-index.h +++ b/sparse-index.h @@ -3,6 +3,7 @@ struct index_state; #define SPARSE_INDEX_MEMORY_ONLY (1 << 0) +int is_sparse_index_allowed(struct index_state *istate, int flags); int convert_to_sparse(struct index_state *istate, int flags); void ensure_correct_sparsity(struct index_state *istate); void clear_skip_worktree_from_present_files(struct index_state *istate); |