| 72 | } |
| 73 | |
| 74 | int 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 | } |
no outgoing calls
no test coverage detected