Add UnifiedDiffWriter.write_index, for writing Index: lines.

Review Request #12629 — Created Sept. 23, 2022 and submitted

chipx86
RBTools
release-4.x
rbtools

This adds UnifiedDiffWriter.write_index(), which writes a standard
Index: ... line, followed by 67 = characters.

This is a fairly standard convention used by Unified Diff variants to
help separate files when there may not otherwise be a clear boundary.
For instance, when there may be metadata changes or binary file
differences, but no ---/+++ headers.

Like other methods, this accepts byte strings or Unicode strings,
handling encoding automatically.

Unit tests passed.

Used this in some in-progress work.

Summary
Add UnifiedDiffWriter.write_index, for writing Index: lines.
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-4.x (2b7d3f7)
Loading...