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

Function not_callback

builtin/grep.c:991–998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

989}
990
991static int not_callback(const struct option *opt, const char *arg, int unset)
992{
993 struct grep_opt *grep_opt = opt->value;
994 BUG_ON_OPT_NEG(unset);
995 BUG_ON_OPT_ARG(arg);
996 append_grep_pattern(grep_opt, "--not", "command line", 0, GREP_NOT);
997 return 0;
998}
999
1000static int and_callback(const struct option *opt, const char *arg, int unset)
1001{

Callers

nothing calls this directly

Calls 1

append_grep_patternFunction · 0.85

Tested by

no test coverage detected