Merge branch 'vd/sparse-reset-checkout-fixes' into maint
Fixes to sparse index compatibility work for "reset" and "checkout" commands. source: <pull.1312.v3.git.1659985672.gitgitgadget@gmail.com> * vd/sparse-reset-checkout-fixes: unpack-trees: unpack new trees as sparse directories cache.h: create 'index_name_pos_sparse()' oneway_diff: handle removed sparse directories checkout: fix nested sparse directory diff in sparse index
This commit is contained in:
@ -620,6 +620,11 @@ int index_name_pos(struct index_state *istate, const char *name, int namelen)
|
||||
return index_name_stage_pos(istate, name, namelen, 0, EXPAND_SPARSE);
|
||||
}
|
||||
|
||||
int index_name_pos_sparse(struct index_state *istate, const char *name, int namelen)
|
||||
{
|
||||
return index_name_stage_pos(istate, name, namelen, 0, NO_EXPAND_SPARSE);
|
||||
}
|
||||
|
||||
int index_entry_exists(struct index_state *istate, const char *name, int namelen)
|
||||
{
|
||||
return index_name_stage_pos(istate, name, namelen, 0, NO_EXPAND_SPARSE) >= 0;
|
||||
|
Reference in New Issue
Block a user