aboutsummaryrefslogtreecommitdiff
path: root/builtin/read-tree.c
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2013-06-02 17:46:55 +0200
committerJunio C Hamano <gitster@pobox.com>2013-06-02 15:31:14 -0700
commiteb9ae4b505bfacc4974a9ef4f4e6996c78d04a4c (patch)
tree75ca369759f81d4d4793362921f5c30eba9ea4e8 /builtin/read-tree.c
parentf2fa35420511cc49e85413a2932a1a2bac88cc1b (diff)
downloadgit-eb9ae4b505bfacc4974a9ef4f4e6996c78d04a4c.tar.gz
git-eb9ae4b505bfacc4974a9ef4f4e6996c78d04a4c.tar.xz
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/read-tree.c')
-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 042ac1b84..b847486cb 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);