| 379 | |
| 380 | |
| 381 | NORETURN void you_still_use_that(const char *command_name, const char *hint) |
| 382 | { |
| 383 | struct strbuf percent_encoded = STRBUF_INIT; |
| 384 | strbuf_add_percentencode(&percent_encoded, |
| 385 | command_name, |
| 386 | STRBUF_ENCODE_SLASH); |
| 387 | |
| 388 | fprintf(stderr, |
| 389 | _("'%s' is nominated for removal.\n"), command_name); |
| 390 | |
| 391 | if (hint) |
| 392 | fputs(hint, stderr); |
| 393 | |
| 394 | fprintf(stderr, |
| 395 | _("If you still use this command, here's what you can do:\n" |
| 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" |
| 404 | "\n"), |
| 405 | percent_encoded.buf); |
| 406 | strbuf_release(&percent_encoded); |
| 407 | die(_("refusing to run without --i-still-use-this")); |
| 408 | } |
no test coverage detected