MCPcopy Index your code
hub / github.com/git/git / renormalize_buffer

Function renormalize_buffer

convert.c:1542–1556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1540}
1541
1542int 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 *

Callers 2

blob_unchangedFunction · 0.85
normalize_fileFunction · 0.85

Calls 3

convert_attrsFunction · 0.85
convert_to_gitFunction · 0.85

Tested by

no test coverage detected