summaryrefslogtreecommitdiff
path: root/t/unit-tests/u-oid-array.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2025-08-18 16:59:29 -0400
committerJunio C Hamano <gitster@pobox.com>2025-08-18 14:23:42 -0700
commite715f776820f22d0951e02947dd0c4f889e83df8 (patch)
tree7037465d87a35383faaee03018a610c4c8872d62 /t/unit-tests/u-oid-array.c
parentc44beea485f0f2feaf460e2ac87fdd5608d63cf0 (diff)
describe: pass oid struct by const pointer
We pass a "struct object_id" to describe_blob() by value. This isn't wrong, as an oid is composed only of copy-able values. But it's unusual; typically we pass structs by const pointer, including object_ids. Let's do so. It similarly makes sense for us to hold that pointer in the callback data (rather than yet another copy of the oid). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/unit-tests/u-oid-array.c')
0 files changed, 0 insertions, 0 deletions