3 int advice_push_nonfastforward
= 1;
4 int advice_status_hints
= 1;
5 int advice_commit_before_merge
= 1;
6 int advice_implicit_identity
= 1;
12 { "pushnonfastforward", &advice_push_nonfastforward
},
13 { "statushints", &advice_status_hints
},
14 { "commitbeforemerge", &advice_commit_before_merge
},
15 { "implicitidentity", &advice_implicit_identity
},
18 int git_default_advice_config(const char *var
, const char *value
)
20 const char *k
= skip_prefix(var
, "advice.");
23 for (i
= 0; i
< ARRAY_SIZE(advice_config
); i
++) {
24 if (strcmp(k
, advice_config
[i
].name
))
26 *advice_config
[i
].preference
= git_config_bool(var
, value
);