aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2017-01-10 12:06:10 -0800
committerJunio C Hamano <gitster@pobox.com>2017-01-11 13:35:13 -0800
commit875425080df13933baf484b35988d3a2dc04629e (patch)
treeba8ba5834a6e254b7614af4487a6ee694e7fb11d /cache.h
parentd7dffce1cebde29a0c4b309a79e4345450bf352a (diff)
downloadgit-875425080df13933baf484b35988d3a2dc04629e.tar.gz
git-875425080df13933baf484b35988d3a2dc04629e.tar.xz
index: improve constness for reading blob data
Improve constness of the index_state parameter to the 'read_blob_data_from_index' function. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index 1b67f078d..ef89eb4a0 100644
--- a/cache.h
+++ b/cache.h
@@ -599,7 +599,7 @@ extern int chmod_index_entry(struct index_state *, struct cache_entry *ce, char
extern int ce_same_name(const struct cache_entry *a, const struct cache_entry *b);
extern void set_object_name_for_intent_to_add_entry(struct cache_entry *ce);
extern int index_name_is_other(const struct index_state *, const char *, int);
-extern void *read_blob_data_from_index(struct index_state *, const char *, unsigned long *);
+extern void *read_blob_data_from_index(const struct index_state *, const char *, unsigned long *);
/* do stat comparison even if CE_VALID is true */
#define CE_MATCH_IGNORE_VALID 01