Download raw body.
diff.git: Fix ed script output
On Mon, Sep 05, 2022 at 04:21:40PM +0100, Tom Jones wrote: > Following patch is updated to update the line offsets in the same way > that diff_output_plain.c does. > + /* Now write out the new lines in all the joined chunks. */ > + int c_idx; > + for (c_idx = cc->chunk.start; c_idx < cc->chunk.end; c_idx++) { > + const struct diff_chunk *c = &result->chunks.head[c_idx]; > + if (c->left_count && !c->right_count) > + continue; > + if (c->right_count && !c->left_count) { > + rc = diff_output_lines(outinfo, dest, > + c->solved ? "" : "?", > + c->right_start, c->right_count); > + fprintf(dest, ".\n"); > + } > + if (rc) > + return rc; The above fprintf seems to be missing a corresponding line offset update.
diff.git: Fix ed script output