Skip to content

Commit 42f8ed6

Browse files
derrickstoleegitster
authored andcommitted
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 <[email protected]> Signed-off-by: Derrick Stolee <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 939fa07 commit 42f8ed6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

builtin/add.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,6 @@ static int renormalize_tracked_files(const struct pathspec *pathspec, int flags)
144144
{
145145
int i, retval = 0;
146146

147-
/* TODO: audit for interaction with sparse-index. */
148-
ensure_full_index(&the_index);
149147
for (i = 0; i < active_nr; i++) {
150148
struct cache_entry *ce = active_cache[i];
151149

0 commit comments

Comments
 (0)