]> git.99rst.org Git - git.git/commit
object-file: treat cached_object values as const
authorJeff King <redacted>
Mon, 18 Nov 2024 09:55:19 +0000 (04:55 -0500)
committerJunio C Hamano <redacted>
Mon, 18 Nov 2024 12:48:48 +0000 (21:48 +0900)
commite37feea00b2b81c0295fddb4f5137d12ea1825c0
tree6be8ae727efc77f585c1b03f5b88d0d7bcf76081
parent9202ffcf1064f883aacc4aba8016918e1d8d8243
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 <redacted>
Signed-off-by: Jeff King <redacted>
Signed-off-by: Junio C Hamano <redacted>
object-file.c
git clone https://git.99rst.org/PROJECT