diff options
author | Jeff King <peff@peff.net> | 2023-02-24 11:07:32 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-02-24 20:30:58 +0300 |
commit | 8840069a37e69129ed3c2792ddb172557f98e205 (patch) | |
tree | fa8cbd032b973dcb9fe51c76e0dedf7a5df99729 /t/t1450-fsck.sh | |
parent | 768bb238c4843bf52847773a621de4dffa6b9ab5 (diff) |
fsck: factor out index fsck
The code to fsck an index operates directly on the_index. Let's move it
into its own function in preparation for handling the index files from
other worktrees.
Since we now have only a single reference to the_index, let's drop
our USE_THE_INDEX_VARIABLE definition and just use the_repository.index
directly. That's a minor cleanup, but also ensures that we didn't miss
any references when moving the code into fsck_index().
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1450-fsck.sh')
0 files changed, 0 insertions, 0 deletions