]> Sergey Matveev's repositories - public-inbox.git/commit
viewdiff: add "b=" param when missing "diff --git" line
authorEric Wong <e@yhbt.net>
Sat, 25 Jan 2020 04:45:08 +0000 (04:45 +0000)
committerEric Wong <e@yhbt.net>
Mon, 27 Jan 2020 02:59:09 +0000 (02:59 +0000)
commita1c0068fbb94cf8c5606567433ff679ae98c8a4c
tree3e97787333e2265551805f5f6b648fbeed1fdf5f
parenta27717d1717b6fdf69e9472e8e9f61b2bbaeb5e7
viewdiff: add "b=" param when missing "diff --git" line

<2841d2de-32ad-eae8-6039-9251a40bb00e@tngtech.com> as posted to
git@vger contained an otherwise valid diff without a "diff
--git" line.  Generate a "b=" parameter in that case using the
"+++" line instead of the "diff --git" line.  SearchIdx.pm no
longer uses the "diff --git" line for filename information,
either.
lib/PublicInbox/ViewDiff.pm