]> Kevux Git Server - rit/commit
sparse-checkout: disable advice in 'disable'
authorDerrick Stolee <stolee@gmail.com>
Mon, 23 Sep 2024 19:31:22 +0000 (19:31 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Sep 2024 20:19:01 +0000 (13:19 -0700)
commit537e516a39a760fddc4f3f5020c4118943f6c146
treeb1c81e108e7fdc8c2933c5baf46bbafa3d2b7b62
parent4f71522dfb7fc53eff569023303980c66114b1bc
sparse-checkout: disable advice in 'disable'

When running 'git sparse-checkout disable' with the sparse index
enabled, Git is expected to expand the index into a full index. However,
it currently outputs the advice message saying that that is unexpected
and likely due to an issue with the working directory.

Disable this advice message when in this code path. Establish a pattern
for doing a similar removal in the future.

Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/sparse-checkout.c
sparse-index.c
sparse-index.h
t/t1092-sparse-checkout-compatibility.sh