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

Function open_callback

builtin/grep.c:1009–1016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1007}
1008
1009static int open_callback(const struct option *opt, const char *arg, int unset)
1010{
1011 struct grep_opt *grep_opt = opt->value;
1012 BUG_ON_OPT_NEG(unset);
1013 BUG_ON_OPT_ARG(arg);
1014 append_grep_pattern(grep_opt, "(", "command line", 0, GREP_OPEN_PAREN);
1015 return 0;
1016}
1017
1018static int close_callback(const struct option *opt, const char *arg, int unset)
1019{

Callers

nothing calls this directly

Calls 1

append_grep_patternFunction · 0.85

Tested by

no test coverage detected