add: remove ensure_full_index() with --renormalize

The --renormalize option updates the EOL conversions for the tracked files. However, the loop already ignores files marked with the SKIP_WORKTREE bit, so it will continue to do so with a sparse index because the sparse directory entries also have this bit set. Reviewed-by: Elijah Newren <newren@gmail.com> Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Derrick Stolee committed Jul 29, 2021 at 14:52 UTC 42f8ed6ca24854141c34aa82472ca126fdaeaf65
1 file changed -2
builtin/add.c
-2
@@ -144,8 +144,6 @@ static int renormalize_tracked_files(const struct pathspec *pathspec, int flags)
144 {
145 int i, retval = 0;
146
147 - /* TODO: audit for interaction with sparse-index. */
148 - ensure_full_index(&the_index);
147 for (i = 0; i < active_nr; i++) {
148 struct cache_entry *ce = active_cache[i];
149