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

Function parse_decoration_option

pretty.c:1400–1415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1398
1399
1400static int parse_decoration_option(const char **arg,
1401 const char *name,
1402 char **opt)
1403{
1404 const char *argval;
1405 size_t arglen;
1406
1407 if (match_placeholder_arg_value(*arg, name, arg, &argval, &arglen)) {
1408 struct strbuf sb = STRBUF_INIT;
1409
1410 expand_string_arg(&sb, argval, arglen);
1411 *opt = strbuf_detach(&sb, NULL);
1412 return 1;
1413 }
1414 return 0;
1415}
1416
1417static void parse_decoration_options(const char **arg,
1418 struct decoration_options *opts)

Callers 1

parse_decoration_optionsFunction · 0.85

Calls 3

expand_string_argFunction · 0.85
strbuf_detachFunction · 0.85

Tested by

no test coverage detected