From 4c9f1e8d1ef7bbc9d0dd4e660da0dad7783d1713 Mon Sep 17 00:00:00 2001 From: Tyrie Vella Date: Wed, 8 Oct 2025 10:06:08 -0700 Subject: [PATCH] Revert "wt-status: add VFS hydration percentage to normal `git status` output" This reverts commit 77a05c8b68704d2e111c819eba4ce22384b40497. --- t/t1093-virtualfilesystem.sh | 2 -- wt-status.c | 13 ++++--------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/t/t1093-virtualfilesystem.sh b/t/t1093-virtualfilesystem.sh index 7786735dffec06..cad13d680cb199 100755 --- a/t/t1093-virtualfilesystem.sh +++ b/t/t1093-virtualfilesystem.sh @@ -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 diff --git a/wt-status.c b/wt-status.c index 6696b90235ce4b..4701c5a56b7078 100644 --- a/wt-status.c +++ b/wt-status.c @@ -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,