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>
This commit is contained in:
parent
3a58792ade
commit
cfde4cd6ff
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user