Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions t/t1093-virtualfilesystem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ test_expect_success 'verify status is clean' '
git status > actual &&
cat > expected <<-\EOF &&
On branch main
You are in a partially-hydrated checkout with 75% of tracked files present.

nothing to commit, working tree clean
EOF
test_cmp expected actual
Expand Down
13 changes: 4 additions & 9 deletions wt-status.c
Original file line number Diff line number Diff line change
Expand Up @@ -1625,15 +1625,10 @@ static void show_sparse_checkout_in_use(struct wt_status *s,
{
if (s->state.sparse_checkout_percentage == SPARSE_CHECKOUT_DISABLED)
return;
if (core_virtualfilesystem) {
if (s->state.sparse_checkout_percentage == SPARSE_CHECKOUT_SPARSE_INDEX)
status_printf_ln(s, color,
_("You are in a partially-hydrated checkout with a sparse index."));
else
status_printf_ln(s, color,
_("You are in a partially-hydrated checkout with %d%% of tracked files present."),
s->state.sparse_checkout_percentage);
} else if (s->state.sparse_checkout_percentage == SPARSE_CHECKOUT_SPARSE_INDEX)
if (core_virtualfilesystem)
return;

if (s->state.sparse_checkout_percentage == SPARSE_CHECKOUT_SPARSE_INDEX)
status_printf_ln(s, color, _("You are in a sparse checkout."));
else
status_printf_ln(s, color,
Expand Down
Loading