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

Function parse_options_concat

parse-options-cb.c:185–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185struct option *parse_options_concat(const struct option *a,
186 const struct option *b)
187{
188 struct option *ret;
189 size_t a_len = parse_options_count(a);
190 size_t b_len = parse_options_count(b);
191
192 ALLOC_ARRAY(ret, st_add3(a_len, b_len, 1));
193 COPY_ARRAY(ret, a, a_len);
194 COPY_ARRAY(ret + a_len, b, b_len + 1); /* + 1 for final OPTION_END */
195
196 return ret;
197}
198
199int parse_opt_string_list(const struct option *opt, const char *arg, int unset)
200{

Callers 10

parse_options_dupFunction · 0.85
add_diff_optionsFunction · 0.85
add_common_optionsFunction · 0.85
cmd_multi_pack_indexFunction · 0.85
run_sequencerFunction · 0.85
add_common_optionsFunction · 0.85
cmd_commit_graphFunction · 0.85
add_common_optionsFunction · 0.85

Calls 1

parse_options_countFunction · 0.85

Tested by

no test coverage detected