aboutsummaryrefslogtreecommitdiffstats
path: root/t/helper/test-dump-untracked-cache.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-04-18 14:14:09 +0200
committerJunio C Hamano <gitster@pobox.com>2024-04-18 12:30:41 -0700
commit319ba144076c27f3451bb73834839e9441a9c180 (patch)
tree8aac610d2f6410eba667b54f0574ceec6bd6de87 /t/helper/test-dump-untracked-cache.c
parentThe twentieth batch (diff)
downloadgit-319ba144076c27f3451bb73834839e9441a9c180.tar.gz
git-319ba144076c27f3451bb73834839e9441a9c180.zip
t/helper: stop using `the_index`
Convert test-helper tools to use `the_repository->index` instead of `the_index`. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-dump-untracked-cache.c')
-rw-r--r--t/helper/test-dump-untracked-cache.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/t/helper/test-dump-untracked-cache.c b/t/helper/test-dump-untracked-cache.c
index b4af9712fe..9ff67c3967 100644
--- a/t/helper/test-dump-untracked-cache.c
+++ b/t/helper/test-dump-untracked-cache.c
@@ -1,4 +1,3 @@
-#define USE_THE_INDEX_VARIABLE
#include "test-tool.h"
#include "dir.h"
#include "hex.h"
@@ -56,7 +55,7 @@ int cmd__dump_untracked_cache(int ac UNUSED, const char **av UNUSED)
setup_git_directory();
if (repo_read_index(the_repository) < 0)
die("unable to read index file");
- uc = the_index.untracked;
+ uc = the_repository->index->untracked;
if (!uc) {
printf("no untracked cache\n");
return 0;