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

Function parseopt_column_callback

column.c:345–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345int parseopt_column_callback(const struct option *opt,
346 const char *arg, int unset)
347{
348 unsigned int *colopts = opt->value;
349 *colopts |= COL_PARSEOPT;
350 *colopts &= ~COL_ENABLE_MASK;
351 if (unset) /* --no-column == never */
352 return 0;
353 /* --column == always unless "arg" states otherwise */
354 *colopts |= COL_ENABLED;
355 if (arg)
356 return parse_config(colopts, arg);
357
358 return 0;
359}
360
361static int fd_out = -1;
362static struct child_process column_process = CHILD_PROCESS_INIT;

Callers

nothing calls this directly

Calls 1

parse_configFunction · 0.70

Tested by

no test coverage detected