| 2145 | } |
| 2146 | |
| 2147 | static 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 | |
| 2160 | static void add_unset_auto_comment_char_advice(struct repository *repo, |
| 2161 | struct comment_char_config *config) |
no outgoing calls
no test coverage detected