summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2013-06-02 15:46:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-06-02 22:31:14 (GMT)
commiteb9ae4b505bfacc4974a9ef4f4e6996c78d04a4c (patch)
tree75ca369759f81d4d4793362921f5c30eba9ea4e8 /builtin
parentf2fa35420511cc49e85413a2932a1a2bac88cc1b (diff)
downloadgit-eb9ae4b505bfacc4974a9ef4f4e6996c78d04a4c.zip
git-eb9ae4b505bfacc4974a9ef4f4e6996c78d04a4c.tar.gz
git-eb9ae4b505bfacc4974a9ef4f4e6996c78d04a4c.tar.bz2
diff-lib, read-tree, unpack-trees: mark cache_entry pointers const
Add const to struct cache_entry pointers throughout the tree which are only used for reading. This allows callers to pass in const pointers. Signed-off-by: René Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/read-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/read-tree.c b/builtin/read-tree.c
index 042ac1b..b847486 100644
--- a/builtin/read-tree.c
+++ b/builtin/read-tree.c
@@ -66,7 +66,7 @@ static int exclude_per_directory_cb(const struct option *opt, const char *arg,
return 0;
}
-static void debug_stage(const char *label, struct cache_entry *ce,
+static void debug_stage(const char *label, const struct cache_entry *ce,
struct unpack_trees_options *o)
{
printf("%s ", label);