summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2023-02-24 03:07:32 -0500
committerJunio C Hamano <gitster@pobox.com>2023-02-24 09:30:58 -0800
commit8840069a37e69129ed3c2792ddb172557f98e205 (patch)
treefa8cbd032b973dcb9fe51c76e0dedf7a5df99729 /builtin/commit.c
parent768bb238c4843bf52847773a621de4dffa6b9ab5 (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 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions