aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/check-attr.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-04-18 14:14:14 +0200
committerJunio C Hamano <gitster@pobox.com>2024-04-18 12:30:42 -0700
commitf59aa5e0a93242f73bf21e241fabe0c261f4b62a (patch)
tree11b227b0b15fc34103be2c545501a22c904c939b /builtin/check-attr.c
parent319ba144076c27f3451bb73834839e9441a9c180 (diff)
downloadgit-f59aa5e0a93242f73bf21e241fabe0c261f4b62a.tar.gz
builtin: stop using `the_index`
Convert builtins 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 'builtin/check-attr.c')
-rw-r--r--builtin/check-attr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/builtin/check-attr.c b/builtin/check-attr.c
index c1da1d184e..9376810710 100644
--- a/builtin/check-attr.c
+++ b/builtin/check-attr.c
@@ -1,4 +1,3 @@
-#define USE_THE_INDEX_VARIABLE
#include "builtin.h"
#include "config.h"
#include "attr.h"
@@ -71,9 +70,9 @@ static void check_attr(const char *prefix, struct attr_check *check,
prefix_path(prefix, prefix ? strlen(prefix) : 0, file);
if (collect_all) {
- git_all_attrs(&the_index, full_path, check);
+ git_all_attrs(the_repository->index, full_path, check);
} else {
- git_check_attr(&the_index, full_path, check);
+ git_check_attr(the_repository->index, full_path, check);
}
output_attr(check, file);