*: remove 'const' qualifier for struct index_state
Several methods specify that they take a 'struct index_state' pointer with the 'const' qualifier because they intend to only query the data, not change it. However, we will be introducing a step very low in the method stack that might modify a sparse-index to become a full index in the case that our queries venture inside a sparse-directory entry. This change only removes the 'const' qualifiers that are necessary for the following change which will actually modify the implementation of index_name_stage_pos(). Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Reviewed-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
839a66349e
commit
847a9e5d4f
@ -2987,7 +2987,7 @@ static int blob_unchanged(struct merge_options *opt,
|
||||
struct strbuf obuf = STRBUF_INIT;
|
||||
struct strbuf abuf = STRBUF_INIT;
|
||||
int ret = 0; /* assume changed for safety */
|
||||
const struct index_state *idx = opt->repo->index;
|
||||
struct index_state *idx = opt->repo->index;
|
||||
|
||||
if (a->mode != o->mode)
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user