Passthrough for non-diff output
craigfurman opened this issue · 3 comments
craigfurman commented
I've recently started using this library, to redact diffs that pertain to secret files from logs. It would be great if (Multi)FileDiffReader could yield content that is not part of a valid diff, so that the caller has the choice of whether or not to print it.
For example, the program colordiff
will successfully print non-diff output, allowing it to be used to process input that is mixed diff and non-diff content.
What do you think of this feature, and would you be interested in a PR that implements it?
keegancsmith commented
mrnugget commented
That sounds reasonable - if the implemenation doesn't become convoluted, I think we'd accept a PR, yes :)
craigfurman commented
OK, I've had a go at it here: #60
let me know what you think 🙂