]> Sergey Matveev's repositories - public-inbox.git/commit
viewdiff: linkify diffstats for non-format-patch emails
authorEric Wong <e@80x24.org>
Tue, 23 Aug 2022 08:31:57 +0000 (08:31 +0000)
committerEric Wong <e@80x24.org>
Tue, 23 Aug 2022 22:40:54 +0000 (22:40 +0000)
commit12f07b0d3942064e4dbd0404102d1ff3d067abae
tree4dac52a58208c7eb9dbc47b9c1551126270c01e5
parent66512e177390aedb4a9380484230768621528e57
viewdiff: linkify diffstats for non-format-patch emails

Some folks unfortunately use "git diff --stat -p" to generate
patches.  These messages lack the /^---$/ line and causing
diffstats to not get linkified properly.  We now treat the
/^---$/ as optional and rely on the presence of file lines with
/ \| / proceeding a /\d+ files? changed,/ line.
lib/PublicInbox/ViewDiff.pm
lib/PublicInbox/ViewVCS.pm