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

Function tr2_sysenv_load

trace2/tr2_sysenv.c:91–97  ·  view source on GitHub ↗

* Load Trace2 settings from the system config (usually "/etc/gitconfig" * unless we were built with a runtime-prefix). These are intended to * define the default values for Trace2 as requested by the administrator. * * Then override with the Trace2 settings from the global config. */

Source from the content-addressed store, hash-verified

89 * Then override with the Trace2 settings from the global config.
90 */
91void tr2_sysenv_load(void)
92{
93 if (ARRAY_SIZE(tr2_sysenv_settings) != TR2_SYSENV_MUST_BE_LAST)
94 BUG("tr2_sysenv_settings size is wrong");
95
96 read_very_early_config(tr2_sysenv_cb, NULL);
97}
98
99/*
100 * Return the value for the requested Trace2 setting from these sources:

Callers 1

trace2_initialize_flFunction · 0.85

Calls 1

read_very_early_configFunction · 0.85

Tested by

no test coverage detected