aboutsummaryrefslogtreecommitdiffstats
path: root/diff.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2024-11-18 04:55:19 -0500
committerJunio C Hamano <gitster@pobox.com>2024-11-18 21:48:48 +0900
commite37feea00b2b81c0295fddb4f5137d12ea1825c0 (patch)
tree6be8ae727efc77f585c1b03f5b88d0d7bcf76081 /diff.c
parentobject-file: drop oid field from find_cached_object() return value (diff)
downloadgit-e37feea00b2b81c0295fddb4f5137d12ea1825c0.tar.gz
git-e37feea00b2b81c0295fddb4f5137d12ea1825c0.zip
object-file: treat cached_object values as const
The cached-object API maps oids to in-memory entries. Once inserted, these entries should be immutable. Let's return them from the find_cached_object() call with a const tag to make this clear. Suggested-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions