| 1267 | } |
| 1268 | |
| 1269 | static enum convert_crlf_action git_path_check_crlf(struct attr_check_item *check) |
| 1270 | { |
| 1271 | const char *value = check->value; |
| 1272 | |
| 1273 | if (ATTR_TRUE(value)) |
| 1274 | return CRLF_TEXT; |
| 1275 | else if (ATTR_FALSE(value)) |
| 1276 | return CRLF_BINARY; |
| 1277 | else if (ATTR_UNSET(value)) |
| 1278 | ; |
| 1279 | else if (!strcmp(value, "input")) |
| 1280 | return CRLF_TEXT_INPUT; |
| 1281 | else if (!strcmp(value, "auto")) |
| 1282 | return CRLF_AUTO; |
| 1283 | return CRLF_UNDEFINED; |
| 1284 | } |
| 1285 | |
| 1286 | static enum eol git_path_check_eol(struct attr_check_item *check) |
| 1287 | { |