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

Function finalize_colopts

column.c:215–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215int finalize_colopts(unsigned int *colopts, int stdout_is_tty)
216{
217 if ((*colopts & COL_ENABLE_MASK) == COL_AUTO) {
218 if (stdout_is_tty < 0)
219 stdout_is_tty = isatty(1);
220 *colopts &= ~COL_ENABLE_MASK;
221 if (stdout_is_tty || pager_in_use())
222 *colopts |= COL_ENABLED;
223 }
224 return 0;
225}
226
227struct colopt {
228 const char *name;

Callers 4

cmd_tagFunction · 0.85
cmd_statusFunction · 0.85
cmd_columnFunction · 0.85
cmd_branchFunction · 0.85

Calls 1

pager_in_useFunction · 0.85

Tested by

no test coverage detected