]> git.99rst.org Git - git.git/commit
object-file: use `container_of()` to convert from base types
authorJustin Tobler <redacted>
Wed, 18 Feb 2026 21:01:20 +0000 (15:01 -0600)
committerJunio C Hamano <redacted>
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
object-file.c
git clone https://git.99rst.org/PROJECT