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

Function process_hunk

src/string/diff.c:62–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62static 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
74int cri_diff_buffer_to_buffer(const struct cri_diff_buffer *b1,
75 const struct cri_diff_buffer *b2, struct cri_diff_buffer *out)

Callers

nothing calls this directly

Calls 1

cri_fmt_bprintfFunction · 0.85

Tested by

no test coverage detected