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

Function is_valid_cmd_name

shell.c:29–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29static int is_valid_cmd_name(const char *cmd)
30{
31 /* Test command contains no . or / characters */
32 return cmd[strcspn(cmd, "./")] == '\0';
33}
34
35static char *make_cmd(const char *prog)
36{

Callers 2

run_shellFunction · 0.85
cmd_mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected