format_diff_stats(
stats: DiffStats,
) -> Content| Name | Type | Description |
|---|---|---|
stats* | DiffStats | Line counts for the change. |
Format addition/deletion counts as styled +N -M content.
Takes the pair as a DiffStats rather than two ints so the counts cannot be
transposed on the way to the places the user reads them — the DiffMessage
header and the approval prompt's File: header.