Update UnifiedDiffWriter to require an explicit stream.
Review Request #12658 — Created Sept. 30, 2022 and submitted
The initial design of
io.BytesIOand therefore allowing any standard
getvalue(). However, this is limiting, as
it means other types of streams (like a file) can be incrementally
This updates the design to require passing an explicit stream. This
simplifies the design a bit, and ensures a separation between diff
writing and stream operations.
Callers have all been updated to construct an explicit
pass to it, and now fetch their results from that method.
All unit tests pass.