]> git.99rst.org Git - git.git/commit
builtin/repack.c: avoid "the_hash_algo" in `write_oid()`
authorTaylor Blau <redacted>
Wed, 15 Oct 2025 22:27:36 +0000 (18:27 -0400)
committerJunio C Hamano <redacted>
Thu, 16 Oct 2025 17:08:53 +0000 (10:08 -0700)
commit9a53583b77c35576f87b7e29cb109b46d29ad803
tree3bc0a2c674af574325fad67d4d14cbd85fa23c1e
parent3758052c0f43fd01d25fc7381c7939daba66c015
builtin/repack.c: avoid "the_hash_algo" in `write_oid()`

In a similar spirit as the previous commit, avoid referring directly to
"the_hash_algo" within builtin/repack.c::write_oid().

Unlike the previous commit, we are within a callback function, so must
introduce a new struct to pass additional data through its "data"
pointer.

Signed-off-by: Taylor Blau <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/repack.c
git clone https://git.99rst.org/PROJECT