]> Sergey Matveev's repositories - public-inbox.git/commit
solver: extract_diff: deal with missing "diff --git" line
authorEric Wong <e@80x24.org>
Fri, 3 Jan 2020 00:56:05 +0000 (00:56 +0000)
committerEric Wong <e@80x24.org>
Fri, 3 Jan 2020 02:29:15 +0000 (02:29 +0000)
commitbea4ca3427a7be4b943aee42593ffc28823637fd
tree611f7e9d03b8a170631bebc525d3aa99c5ef9151
parent3eafdb33697581b8d797bf7c664a53a311725075
solver: extract_diff: deal with missing "diff --git" line

Rewrite the patch extraction loop using a single regexp which
accounts for missing "diff --git ..." lines and is capable of
extracting pathnames off the "+++ b/foo" line.

This fixes the solving of blob "96f1c7f" off
<2841d2de-32ad-eae8-6039-9251a40bb00e@tngtech.com>
in git@vger archives.

v2:

* Fix regressions in git@vger archives:
  - git/776fa90f7f/s/?b=contrib/git-jump/git-jump
    (fallback to "old mode" properly)
  - git/5cd8845/s/?b=submodule.c
    (no leading space in context)

* use "state" in a Perl <5.28.0-compatible way
lib/PublicInbox/SolverGit.pm