]> git.ipfire.org Git - thirdparty/git.git/commit
cache.h & test-tool.h: add & use "USE_THE_INDEX_VARIABLE"
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 19 Nov 2022 13:07:37 +0000 (14:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Nov 2022 03:06:15 +0000 (12:06 +0900)
commitbdafeae0b9cdbf5b33c116564ffec93389cc5d37
treea9b96e50d2ed56964595b64afb87909112e78589
parent666f53eb43f52216d03d579b91a2152ba7821773
cache.h & test-tool.h: add & use "USE_THE_INDEX_VARIABLE"

In a preceding commit we fully applied the
"index-compatibility.pending.cocci" rule to "t/helper/*".

Let's now stop defining "USE_THE_INDEX_COMPATIBILITY_MACROS" in
test-tool.h itself, and instead instead define
"USE_THE_INDEX_VARIABLE" in the individual test helpers that need
it. This mirrors how we do the same thing in the "builtin/" directory.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-cache-tree.c
t/helper/test-dump-cache-tree.c
t/helper/test-dump-split-index.c
t/helper/test-dump-untracked-cache.c
t/helper/test-fast-rebase.c
t/helper/test-lazy-init-name-hash.c
t/helper/test-read-cache.c
t/helper/test-scrap-cache-tree.c
t/helper/test-tool.h
t/helper/test-write-cache.c