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

Function close_callback

builtin/grep.c:1018–1025  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1016}
1017
1018static int close_callback(const struct option *opt, const char *arg, int unset)
1019{
1020 struct grep_opt *grep_opt = opt->value;
1021 BUG_ON_OPT_NEG(unset);
1022 BUG_ON_OPT_ARG(arg);
1023 append_grep_pattern(grep_opt, ")", "command line", 0, GREP_CLOSE_PAREN);
1024 return 0;
1025}
1026
1027static int pattern_callback(const struct option *opt, const char *arg,
1028 int unset)

Callers

nothing calls this directly

Calls 1

append_grep_patternFunction · 0.85

Tested by

no test coverage detected