| 1398 | |
| 1399 | |
| 1400 | static 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 | |
| 1417 | static void parse_decoration_options(const char **arg, |
| 1418 | struct decoration_options *opts) |
no test coverage detected