MCPcopy Create free account
hub / github.com/Snaipe/Criterion / cri_diff_buffer_to_buffer

Function cri_diff_buffer_to_buffer

src/string/diff.c:74–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74int cri_diff_buffer_to_buffer(const struct cri_diff_buffer *b1,
75 const struct cri_diff_buffer *b2, struct cri_diff_buffer *out)
76{
77 memset(out, 0, sizeof (*out));
78 struct cri_diff_context ctx = {
79 .buf = out,
80 .offset = 0,
81 };
82 return git_diff_buffers(b1->ptr, b1->size, "old",
83 b2->ptr, b2->size, "new",
84 NULL, NULL, NULL, process_hunk, process_line, &ctx);
85}

Callers 2

collect_leavesFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected