aboutsummaryrefslogtreecommitdiffstats
path: root/read-cache.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-01-23 15:59:19 -0800
committerJunio C Hamano <gitster@pobox.com>2017-01-23 15:59:19 -0800
commita06b4c337cbfdf70709d2092ecdcd84f4e20ecb3 (patch)
tree13b87a40c90078c63b6de8c15fa329b8bccc5afd /read-cache.c
parent787f75f0567aa8c7347544c65e9d3bc6640a27d4 (diff)
parent875425080df13933baf484b35988d3a2dc04629e (diff)
downloadgit-a06b4c337cbfdf70709d2092ecdcd84f4e20ecb3.tar.gz
Merge branch 'bw/read-blob-data-does-not-modify-index-state'
Code clean-up. * bw/read-blob-data-does-not-modify-index-state: index: improve constness for reading blob data
Diffstat (limited to 'read-cache.c')
-rw-r--r--read-cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/read-cache.c b/read-cache.c
index 2eca639cce..7a9a7de91e 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -2285,7 +2285,8 @@ int index_name_is_other(const struct index_state *istate, const char *name,
return 1;
}
-void *read_blob_data_from_index(struct index_state *istate, const char *path, unsigned long *size)
+void *read_blob_data_from_index(const struct index_state *istate,
+ const char *path, unsigned long *size)
{
int pos, len;
unsigned long sz;