| 1310 | |
| 1311 | |
| 1312 | static const char *compute_builtin_attr(struct index_state *istate, |
| 1313 | const char *path, |
| 1314 | const struct git_attr *attr) { |
| 1315 | static const struct git_attr *object_mode_attr; |
| 1316 | |
| 1317 | if (!object_mode_attr) |
| 1318 | object_mode_attr = git_attr("builtin_objectmode"); |
| 1319 | |
| 1320 | if (attr == object_mode_attr) |
| 1321 | return builtin_object_mode_attr(istate, path); |
| 1322 | return ATTR__UNSET; |
| 1323 | } |
| 1324 | |
| 1325 | void git_check_attr(struct index_state *istate, |
| 1326 | const char *path, |
no test coverage detected