MCPcopy Create free account
hub / github.com/git/git / you_still_use_that

Function you_still_use_that

usage.c:381–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379
380
381NORETURN 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}

Callers 2

cmd_whatchangedFunction · 0.85
cmd_pack_redundantFunction · 0.85

Calls 3

strbuf_add_percentencodeFunction · 0.85
strbuf_releaseFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected