|
7 | 7 | #include "git-compat-util.h"
|
8 | 8 | #include "gettext.h"
|
9 | 9 | #include "trace2.h"
|
| 10 | +#include "strbuf.h" |
10 | 11 |
|
11 | 12 | static void vfreportf(FILE *f, const char *prefix, const char *err, va_list params)
|
12 | 13 | {
|
@@ -377,12 +378,24 @@ void bug_fl(const char *file, int line, const char *fmt, ...)
|
377 | 378 |
|
378 | 379 | NORETURN void you_still_use_that(const char *command_name)
|
379 | 380 | {
|
| 381 | + struct strbuf percent_encoded = STRBUF_INIT; |
| 382 | + strbuf_add_percentencode(&percent_encoded, |
| 383 | + command_name, |
| 384 | + STRBUF_ENCODE_SLASH); |
| 385 | + |
380 | 386 | fprintf(stderr,
|
381 | 387 | _("'%s' is nominated for removal.\n"
|
382 |
| - "If you still use this command, please add an extra\n" |
383 |
| - "option, '--i-still-use-this', on the command line\n" |
384 |
| - "and let us know you still use it by sending an e-mail\n" |
385 |
| - "to <[email protected]>. Thanks.\n"), |
386 |
| - command_name); |
| 388 | + "If you still use this command, here's what you can do:\n" |
| 389 | + "\n" |
| 390 | + "- read https://git-scm.com/docs/BreakingChanges.html\n" |
| 391 | + "- check if anyone has discussed this on the mailing\n" |
| 392 | + " list and if they came up with something that can\n" |
| 393 | + " help you: https://lore.kernel.org/git/?q=%s\n" |
| 394 | + "- send an email to <[email protected]> to let us\n" |
| 395 | + " know that you still use this command and were unable\n" |
| 396 | + " to determine a suitable replacement\n" |
| 397 | + "\n"), |
| 398 | + command_name, percent_encoded.buf); |
| 399 | + strbuf_release(&percent_encoded); |
387 | 400 | die(_("refusing to run without --i-still-use-this"));
|
388 | 401 | }
|
0 commit comments