Commit

8ace32221c2765e27ddbcf4606e9b5c11eaafa30

you_still_use_that(): reword the instructions

The message is overly long and may mislead readers into thinking
there is recourse other than adopting the new workflow.  Clarify
that the message is there merely to help them find a replacement
workflow, and is not offering to reconsider a decision that has
already taken effect.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano <gitster@pobox.com> · 2026-08-27 18:15 UTC

Browse files
3 files changed, +9 −11
modified t/t4013-diff-various.sh
@@ -478,7 +478,7 @@ EOF
478 478
479 479 test_expect_success !WITH_BREAKING_CHANGES 'whatchanged needs --i-still-use-this' '
480 480 test_must_fail git whatchanged >message 2>&1 &&
481 - test_grep "nominated for removal" message
481 + test_grep "will be removed soon" message
482 482 '
483 483
484 484 test_expect_success 'log -m matches pure log' '
modified t/t5323-pack-redundant.sh
@@ -47,7 +47,7 @@ shared_repo=shared.git
47 47
48 48 test_expect_success 'pack-redundant needs --i-still-use-this' '
49 49 test_must_fail git pack-redundant >message 2>&1 &&
50 - test_grep "nominated for removal" message
50 + test_grep "will be removed soon" message
51 51 '
52 52
53 53 git_pack_redundant='git pack-redundant --i-still-use-this'
modified usage.c
@@ -386,21 +386,19 @@ NORETURN void you_still_use_that(const char *command_name, const char *hint)
386 386 STRBUF_ENCODE_SLASH);
387 387
388 388 fprintf(stderr,
389 - _("'%s' is nominated for removal.\n"), command_name);
389 + _("'%s' will be removed soon.\n"), command_name);
390 390
391 391 if (hint)
392 392 fputs(hint, stderr);
393 393
394 394 fprintf(stderr,
395 - _("If you still use this command, here's what you can do:\n"
395 + _("If you need a replacement:\n"
396 396 "\n"
397 - "- read https://git-scm.com/docs/BreakingChanges.html\n"
398 - "- check if anyone has discussed this on the mailing\n"
399 - " list and if they came up with something that can\n"
400 - " help you: https://lore.kernel.org/git/?q=%s\n"
401 - "- send an email to <git@vger.kernel.org> to let us\n"
402 - " know that you still use this command and were unable\n"
403 - " to determine a suitable replacement\n"
397 + "- Read https://git-scm.com/docs/BreakingChanges.html.\n\n"
398 + "- Check what others on the mailing list suggest as a replacement:\n"
399 + " https://lore.kernel.org/git/?q=%s\n\n"
400 + "- Send an email to <git@vger.kernel.org> asking for help, only if\n"
401 + " suggestions by others do not work for you.\n"
404 402 "\n"),
405 403 percent_encoded.buf);
406 404 strbuf_release(&percent_encoded);