MCPcopy Index your code
hub / github.com/git/git / check_pager_config

Function check_pager_config

pager.c:295–308  ·  view source on GitHub ↗

returns 0 for "no pager", 1 for "use pager", and -1 for "not specified" */

Source from the content-addressed store, hash-verified

293
294/* returns 0 for "no pager", 1 for "use pager", and -1 for "not specified" */
295int check_pager_config(struct repository *r, const char *cmd)
296{
297 struct pager_command_config_data data;
298
299 data.cmd = cmd;
300 data.want = -1;
301 data.value = NULL;
302
303 read_early_config(r, pager_command_config, &data);
304
305 if (data.value)
306 pager_program = data.value;
307 return data.want;
308}

Callers 4

setup_auto_pagerFunction · 0.85
run_builtinFunction · 0.85
execv_dashed_externalFunction · 0.85
setup_diff_pagerFunction · 0.85

Calls 1

read_early_configFunction · 0.85

Tested by

no test coverage detected