]> git.ipfire.org Git - thirdparty/git.git/commit
hex: guard declarations with `USE_THE_REPOSITORY_VARIABLE`
authorPatrick Steinhardt <ps@pks.im>
Fri, 14 Jun 2024 06:51:14 +0000 (08:51 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 14 Jun 2024 17:26:35 +0000 (10:26 -0700)
commitdc89b7d5220d94a3d6555e4df6b7c458a82dc771
tree8488ada42925bf691781ecdae2879ea4fdaffb47
parent912d4756cde9513e500f345fcc9b7a2c43a47e65
hex: guard declarations with `USE_THE_REPOSITORY_VARIABLE`

Guard declarations of functions that implicitly use `the_repository`
with `USE_THE_REPOSITORY_VARIABLE` such that callers don't accidentally
rely on that global variable.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
hex.h