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

Function print_command_list

help.c:105–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105static void print_command_list(const struct cmdname_help *cmds,
106 uint32_t mask, int longest)
107{
108 int i;
109
110 for (i = 0; cmds[i].name; i++) {
111 if (cmds[i].category & mask) {
112 size_t len = utf8_strwidth(cmds[i].name);
113 printf(" %s ", cmds[i].name);
114 if (longest > len)
115 mput_char(' ', longest - len);
116 puts(_(cmds[i].help));
117 }
118 }
119}
120
121static int cmd_name_cmp(const void *elem1, const void *elem2)
122{

Callers 2

print_cmd_by_categoryFunction · 0.85

Calls 2

utf8_strwidthFunction · 0.85
mput_charFunction · 0.85

Tested by

no test coverage detected