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

Function advise_if_enabled

advice.c:149–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149void advise_if_enabled(enum advice_type type, const char *advice, ...)
150{
151 va_list params;
152
153 if (!advice_enabled(type))
154 return;
155
156 va_start(params, advice);
157 vadvise(advice, !advice_setting[type].level, advice_setting[type].key,
158 params);
159 va_end(params);
160}
161
162int git_default_advice_config(const char *var, const char *value)
163{

Callers 15

print_adviceFunction · 0.85
check_merge_commit_insnFunction · 0.85
make_script_with_mergesFunction · 0.85
sequencer_make_scriptFunction · 0.85
die_ff_impossibleFunction · 0.85
repo_default_branch_nameFunction · 0.85
validate_branchnameFunction · 0.85
dwim_branch_startFunction · 0.85
skip_submoduleFunction · 0.85

Calls 2

advice_enabledFunction · 0.85
vadviseFunction · 0.85

Tested by 1

cmd__advise_if_enabledFunction · 0.68