Merge branch 'ds/sparse-index-protections'
Builds on top of the sparse-index infrastructure to mark operations that are not ready to mark with the sparse index, causing them to fall back on fully-populated index that they always have worked with. * ds/sparse-index-protections: (47 commits) name-hash: use expand_to_path() sparse-index: expand_to_path() name-hash: don't add directories to name_hash revision: ensure full index resolve-undo: ensure full index read-cache: ensure full index pathspec: ensure full index merge-recursive: ensure full index entry: ensure full index dir: ensure full index update-index: ensure full index stash: ensure full index rm: ensure full index merge-index: ensure full index ls-files: ensure full index grep: ensure full index fsck: ensure full index difftool: ensure full index commit: ensure full index checkout: ensure full index ...
This commit is contained in:
14
attr.c
14
attr.c
@ -733,7 +733,7 @@ static struct attr_stack *read_attr_from_file(const char *path, unsigned flags)
|
||||
return res;
|
||||
}
|
||||
|
||||
static struct attr_stack *read_attr_from_index(const struct index_state *istate,
|
||||
static struct attr_stack *read_attr_from_index(struct index_state *istate,
|
||||
const char *path,
|
||||
unsigned flags)
|
||||
{
|
||||
@ -763,7 +763,7 @@ static struct attr_stack *read_attr_from_index(const struct index_state *istate,
|
||||
return res;
|
||||
}
|
||||
|
||||
static struct attr_stack *read_attr(const struct index_state *istate,
|
||||
static struct attr_stack *read_attr(struct index_state *istate,
|
||||
const char *path, unsigned flags)
|
||||
{
|
||||
struct attr_stack *res = NULL;
|
||||
@ -855,7 +855,7 @@ static void push_stack(struct attr_stack **attr_stack_p,
|
||||
}
|
||||
}
|
||||
|
||||
static void bootstrap_attr_stack(const struct index_state *istate,
|
||||
static void bootstrap_attr_stack(struct index_state *istate,
|
||||
struct attr_stack **stack)
|
||||
{
|
||||
struct attr_stack *e;
|
||||
@ -894,7 +894,7 @@ static void bootstrap_attr_stack(const struct index_state *istate,
|
||||
push_stack(stack, e, NULL, 0);
|
||||
}
|
||||
|
||||
static void prepare_attr_stack(const struct index_state *istate,
|
||||
static void prepare_attr_stack(struct index_state *istate,
|
||||
const char *path, int dirlen,
|
||||
struct attr_stack **stack)
|
||||
{
|
||||
@ -1094,7 +1094,7 @@ static void determine_macros(struct all_attrs_item *all_attrs,
|
||||
* If check->check_nr is non-zero, only attributes in check[] are collected.
|
||||
* Otherwise all attributes are collected.
|
||||
*/
|
||||
static void collect_some_attrs(const struct index_state *istate,
|
||||
static void collect_some_attrs(struct index_state *istate,
|
||||
const char *path,
|
||||
struct attr_check *check)
|
||||
{
|
||||
@ -1123,7 +1123,7 @@ static void collect_some_attrs(const struct index_state *istate,
|
||||
fill(path, pathlen, basename_offset, check->stack, check->all_attrs, rem);
|
||||
}
|
||||
|
||||
void git_check_attr(const struct index_state *istate,
|
||||
void git_check_attr(struct index_state *istate,
|
||||
const char *path,
|
||||
struct attr_check *check)
|
||||
{
|
||||
@ -1140,7 +1140,7 @@ void git_check_attr(const struct index_state *istate,
|
||||
}
|
||||
}
|
||||
|
||||
void git_all_attrs(const struct index_state *istate,
|
||||
void git_all_attrs(struct index_state *istate,
|
||||
const char *path, struct attr_check *check)
|
||||
{
|
||||
int i;
|
||||
|
Reference in New Issue
Block a user