*: remove 'const' qualifier for struct index_state
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 1 Apr 2021 01:49:39 +0000 (01:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Apr 2021 20:46:00 +0000 (13:46 -0700)
commit847a9e5d4f876646e128c89f0818b1a8ce792509
treedc3a36fbfcc5d0384093da4bc75bef39f4b73bac
parent839a66349e094a28f29577a8b311491b9d6b907b
*: 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>
14 files changed:
attr.c
attr.h
builtin/ls-files.c
cache.h
convert.c
convert.h
dir.c
dir.h
merge-recursive.c
pathspec.c
pathspec.h
read-cache.c
submodule.c
submodule.h