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

Function can_unset_comment_char_config

config.c:2147–2158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2145}
2146
2147static bool can_unset_comment_char_config(struct comment_char_config *config)
2148{
2149 for (size_t i = 0; i < config->nr; i++) {
2150 struct comment_char_config_item *item = &config->item[i];
2151
2152 if (item->scope == CONFIG_SCOPE_SYSTEM &&
2153 access(item->path, W_OK))
2154 return false;
2155 }
2156
2157 return true;
2158}
2159
2160static void add_unset_auto_comment_char_advice(struct repository *repo,
2161 struct comment_char_config *config)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected