| 1249 | } |
| 1250 | |
| 1251 | static const char *git_path_check_encoding(struct attr_check_item *check) |
| 1252 | { |
| 1253 | const char *value = check->value; |
| 1254 | |
| 1255 | if (ATTR_UNSET(value) || !strlen(value)) |
| 1256 | return NULL; |
| 1257 | |
| 1258 | if (ATTR_TRUE(value) || ATTR_FALSE(value)) { |
| 1259 | die(_("true/false are no valid working-tree-encodings")); |
| 1260 | } |
| 1261 | |
| 1262 | /* Don't encode to the default encoding */ |
| 1263 | if (same_encoding(value, default_encoding)) |
| 1264 | return NULL; |
| 1265 | |
| 1266 | return value; |
| 1267 | } |
| 1268 | |
| 1269 | static enum convert_crlf_action git_path_check_crlf(struct attr_check_item *check) |
| 1270 | { |
no test coverage detected