| 1540 | } |
| 1541 | |
| 1542 | int renormalize_buffer(struct index_state *istate, const char *path, |
| 1543 | const char *src, size_t len, struct strbuf *dst) |
| 1544 | { |
| 1545 | struct conv_attrs ca; |
| 1546 | int ret; |
| 1547 | |
| 1548 | convert_attrs(istate, &ca, path); |
| 1549 | ret = convert_to_working_tree_ca_internal(&ca, path, src, len, dst, 1, |
| 1550 | NULL, NULL); |
| 1551 | if (ret) { |
| 1552 | src = dst->buf; |
| 1553 | len = dst->len; |
| 1554 | } |
| 1555 | return ret | convert_to_git(istate, path, src, len, dst, CONV_EOL_RENORMALIZE); |
| 1556 | } |
| 1557 | |
| 1558 | /***************************************************************** |
| 1559 | * |
no test coverage detected