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

Function and_callback

builtin/grep.c:1000–1007  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

998}
999
1000static int and_callback(const struct option *opt, const char *arg, int unset)
1001{
1002 struct grep_opt *grep_opt = opt->value;
1003 BUG_ON_OPT_NEG(unset);
1004 BUG_ON_OPT_ARG(arg);
1005 append_grep_pattern(grep_opt, "--and", "command line", 0, GREP_AND);
1006 return 0;
1007}
1008
1009static int open_callback(const struct option *opt, const char *arg, int unset)
1010{

Callers

nothing calls this directly

Calls 1

append_grep_patternFunction · 0.85

Tested by

no test coverage detected