Skip to content

Commit

Permalink
Revert "trace2:data: add vfs stats"
Browse files Browse the repository at this point in the history
This reverts commit 7336c10.
  • Loading branch information
jeffhostetler committed Jan 31, 2019
1 parent 4e11a5f commit 1829cd7
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions virtualfilesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ void apply_virtualfilesystem(struct index_state *istate)
{
char *buf, *entry;
int i;
int nr_tracked = 0;

if (!git_config_get_virtualfilesystem())
return;
Expand Down Expand Up @@ -279,7 +278,6 @@ void apply_virtualfilesystem(struct index_state *istate)
pos = -pos - 1;
while (pos < istate->cache_nr && !fspathncmp(istate->cache[pos]->name, entry, len)) {
istate->cache[pos]->ce_flags &= ~CE_SKIP_WORKTREE;
nr_tracked++;
pos++;
}
}
Expand All @@ -290,19 +288,14 @@ void apply_virtualfilesystem(struct index_state *istate)
ce->ce_flags &= ~CE_SKIP_WORKTREE;
} else {
int pos = index_name_pos(istate, entry, len);
if (pos >= 0) {
nr_tracked++;
if (pos >= 0)
istate->cache[pos]->ce_flags &= ~CE_SKIP_WORKTREE;
}
}
}

entry += len + 1;
}
}

if (nr_tracked > 0)
trace2_data_intmax("vfs", the_repository, "apply/tracked", nr_tracked);
}

/*
Expand Down

0 comments on commit 1829cd7

Please sign in to comment.