summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2021-07-29 14:52:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-07-29 19:36:34 (GMT)
commit42f8ed6ca24854141c34aa82472ca126fdaeaf65 (patch)
tree796d39fd8119a5324dc69c048f13e96e3736738a
parent939fa07582a2c9455e71f599263e2dcbe1d655b5 (diff)
downloadgit-42f8ed6ca24854141c34aa82472ca126fdaeaf65.zip
git-42f8ed6ca24854141c34aa82472ca126fdaeaf65.tar.gz
git-42f8ed6ca24854141c34aa82472ca126fdaeaf65.tar.bz2
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>
-rw-r--r--builtin/add.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/builtin/add.c b/builtin/add.c
index d512ece..c49e179 100644
--- a/builtin/add.c
+++ b/builtin/add.c
@@ -144,8 +144,6 @@ static int renormalize_tracked_files(const struct pathspec *pathspec, int flags)
{
int i, retval = 0;
- /* TODO: audit for interaction with sparse-index. */
- ensure_full_index(&the_index);
for (i = 0; i < active_nr; i++) {
struct cache_entry *ce = active_cache[i];