Add UnifiedDiffWriter.write_index, for writing Index: lines.

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

Information

RBTools
release-4.x

Reviewers

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 ID
Add UnifiedDiffWriter.write_index, for writing Index: lines.
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.
d4c6a3b4adbdd00923ba77f79fbbab4867251680
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

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