Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
29
static int is_valid_cmd_name(const char *cmd)
30
{
31
/* Test command contains no . or / characters */
32
return cmd[strcspn(cmd,
"./"
)] ==
'\0'
;
33
}
34
35
static char *make_cmd(const char *prog)
36
{
Callers
2
run_shell
Function · 0.85
cmd_main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected