| 60 | } |
| 61 | |
| 62 | static int process_hunk(const git_diff_delta *delta, const git_diff_hunk *h, |
| 63 | void *data) |
| 64 | { |
| 65 | (void) delta; |
| 66 | |
| 67 | struct cri_diff_context *ctx = data; |
| 68 | |
| 69 | return cri_fmt_bprintf(&ctx->buf->ptr, &ctx->offset, &ctx->buf->size, |
| 70 | "@@ -%d,%d +%d,%d @@\n", h->old_start, h->old_lines, |
| 71 | h->new_start, h->new_lines); |
| 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) |
nothing calls this directly
no test coverage detected