MCPcopy Create free account
hub / github.com/git/git / pattern_callback

Function pattern_callback

builtin/grep.c:1027–1034  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1025}
1026
1027static int pattern_callback(const struct option *opt, const char *arg,
1028 int unset)
1029{
1030 struct grep_opt *grep_opt = opt->value;
1031 BUG_ON_OPT_NEG(unset);
1032 append_grep_pattern(grep_opt, arg, "-e option", 0, GREP_PATTERN);
1033 return 0;
1034}
1035
1036int cmd_grep(int argc,
1037 const char **argv,

Callers

nothing calls this directly

Calls 1

append_grep_patternFunction · 0.85

Tested by

no test coverage detected