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

Function is_command

sequencer.c:2616–2628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2614}
2615
2616static int is_command(enum todo_command command, const char **bol)
2617{
2618 const char *str = todo_command_info[command].str;
2619 const char nick = todo_command_info[command].c;
2620 const char *p = *bol;
2621
2622 if ((skip_prefix(p, str, &p) || (nick && *p++ == nick)) &&
2623 (*p == ' ' || *p == '\t' || *p == '\n' || *p == '\r' || !*p)) {
2624 *bol = p;
2625 return 1;
2626 }
2627 return 0;
2628}
2629
2630static int check_label_or_ref_arg(enum todo_command command, const char *arg)
2631{

Callers 2

parse_insn_lineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected