summaryrefslogtreecommitdiff
path: root/tree.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-07-22 11:24:00 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-07-22 11:24:01 -0700
commitd3aeb31dc410a71ee41b87328f0d71996417294f (patch)
treec9792a61c95180c0eeb4c85f5c97fbde63aa53d0 /tree.c
parentMerge branch 'jk/gcc-function-attributes' (diff)
parentConvert "struct cache_entry *" to "const ..." wherever possible (diff)
downloadtgif-d3aeb31dc410a71ee41b87328f0d71996417294f.tar.xz
Merge branch 'nd/const-struct-cache-entry'
* nd/const-struct-cache-entry: Convert "struct cache_entry *" to "const ..." wherever possible
Diffstat (limited to 'tree.c')
-rw-r--r--tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tree.c b/tree.c
index 62fed632d8..c0e568c08f 100644
--- a/tree.c
+++ b/tree.c
@@ -159,7 +159,7 @@ int read_tree(struct tree *tree, int stage, struct pathspec *match)
* sort at the end.
*/
for (i = 0; !fn && i < active_nr; i++) {
- struct cache_entry *ce = active_cache[i];
+ const struct cache_entry *ce = active_cache[i];
if (ce_stage(ce) == stage)
fn = read_one_entry;
}