MCPcopy Index your code
hub / github.com/git/git / pathspec_magic_names

Function pathspec_magic_names

pathspec.c:563–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

561}
562
563void pathspec_magic_names(unsigned magic, struct strbuf *out)
564{
565 unsigned int i;
566 for (i = 0; i < ARRAY_SIZE(pathspec_magic); i++) {
567 const struct pathspec_magic *m = pathspec_magic + i;
568 if (!(magic & m->bit))
569 continue;
570 if (out->len)
571 strbuf_addstr(out, ", ");
572
573 if (m->mnemonic)
574 strbuf_addf(out, _("'%s' (mnemonic: '%c')"),
575 m->name, m->mnemonic);
576 else
577 strbuf_addf(out, "'%s'", m->name);
578 }
579}
580
581static void NORETURN unsupported_magic(const char *pattern,
582 unsigned magic)

Callers 2

unsupported_magicFunction · 0.85

Calls 2

strbuf_addstrFunction · 0.85
strbuf_addfFunction · 0.85

Tested by

no test coverage detected