]> Kevux Git Server - rit/commit
object-file: use `container_of()` to convert from base types
authorJustin Tobler <jltobler@gmail.com>
Wed, 18 Feb 2026 21:01:20 +0000 (15:01 -0600)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Feb 2026 18:12:11 +0000 (10:12 -0800)
commit20daad2db4d5ff6c108d473ae068785198868d68
tree0744789b2d390e86b518909bc6409e2a4660388a
parent73fd77805fc6406f31c36212846d9e2541d19321
object-file: use `container_of()` to convert from base types

To improve code hygiene, replace direct casts from `struct
odb_transaction` and `struct odb_read_stream` to their concrete
implementations with `container_of()`.

Signed-off-by: Justin Tobler <jltobler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object-file.c