Separate functions on ed script vs consensus diff

A consensus diff is the headers plus the ed script.
As suggested by Sebastian, check that the ed script works in gen_diff