mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
*: 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
4
attr.h
4
attr.h
@@ -190,14 +190,14 @@ void attr_check_free(struct attr_check *check);
|
||||
*/
|
||||
const char *git_attr_name(const struct git_attr *);
|
||||
|
||||
void git_check_attr(const struct index_state *istate,
|
||||
void git_check_attr(struct index_state *istate,
|
||||
const char *path, struct attr_check *check);
|
||||
|
||||
/*
|
||||
* Retrieve all attributes that apply to the specified path.
|
||||
* check holds the attributes and their values.
|
||||
*/
|
||||
void git_all_attrs(const struct index_state *istate,
|
||||
void git_all_attrs(struct index_state *istate,
|
||||
const char *path, struct attr_check *check);
|
||||
|
||||
enum git_attr_direction {
|
||||
|
||||
Reference in New Issue
Block a user