diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-07-08 21:23:08 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-07-08 21:23:08 +0300 |
commit | b00ec259e735fcb0dc4f697b7cc98b2730879d63 (patch) | |
tree | ec3c5a63dfd4b64320583e16a4c4c5dad029ddba /builtin/fsck.c | |
parent | 7f5ad0ca8d1d7db7a21755af34251714d86b2ec1 (diff) | |
parent | 6e6a529b573398f0a8828551cf04dafb4f084c9a (diff) |
Merge branch 'jk/fsck-indices-in-worktrees'
Code clarification.
* jk/fsck-indices-in-worktrees:
fsck: avoid misleading variable name
Diffstat (limited to 'builtin/fsck.c')
-rw-r--r-- | builtin/fsck.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/fsck.c b/builtin/fsck.c index fa26462337..3aa9c812eb 100644 --- a/builtin/fsck.c +++ b/builtin/fsck.c @@ -810,7 +810,7 @@ static int fsck_resolve_undo(struct index_state *istate, } static void fsck_index(struct index_state *istate, const char *index_path, - int is_main_index) + int is_current_worktree) { unsigned int i; @@ -832,7 +832,7 @@ static void fsck_index(struct index_state *istate, const char *index_path, obj->flags |= USED; fsck_put_object_name(&fsck_walk_options, &obj->oid, "%s:%s", - is_main_index ? "" : index_path, + is_current_worktree ? "" : index_path, istate->cache[i]->name); mark_object_reachable(obj); } |