pkg / diff

BSD 3-Clause "New" or "Revised" License
88 stars 9 forks source link

add an API to output an ed script #21

Open mvdan opened 4 years ago

mvdan commented 4 years ago

I used them for a project long ago, as a way to easily have portable and readable "edit scripts" to go from plaintext file A to B. You can see it in action via diff --ed.

This is a kind of diff that's unlike the others, since it's not really meant for humans. I still think it belongs here, though.

mvdan commented 4 years ago

I should clarify that this is a "wish list" item. I don't have a need for this right now, nor do I think it's high priority.

josharian commented 4 years ago

From a quick glance, should be pretty straightforward. For a rainy afternoon sometime.