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

Function verify_opt_compatible

builtin/revert.c:92–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92LAST_ARG_MUST_BE_NULL
93static void verify_opt_compatible(const char *me, const char *base_opt, ...)
94{
95 const char *this_opt;
96 va_list ap;
97
98 va_start(ap, base_opt);
99 while ((this_opt = va_arg(ap, const char *))) {
100 if (va_arg(ap, int))
101 break;
102 }
103 va_end(ap);
104
105 if (this_opt)
106 die(_("%s: %s cannot be used with %s"), me, this_opt, base_opt);
107}
108
109static int run_sequencer(int argc, const char **argv, const char *prefix,
110 struct replay_opts *opts)

Callers 1

run_sequencerFunction · 0.85

Calls 1

dieFunction · 0.50

Tested by

no test coverage detected