diff options
author | Eric Wong <e@80x24.org> | 2019-06-04 08:30:55 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-06-04 10:06:18 +0000 |
commit | bbfa42a9ea55b7057c7a6b632f090763c9e7c655 (patch) | |
tree | 241795973e799c5b54e04e3d7f20a9e2948fea6b /lib/PublicInbox/SolverGit.pm | |
parent | b5693a2107a1edd02cfad73f9302833e1b91d339 (diff) | |
download | public-inbox-bbfa42a9ea55b7057c7a6b632f090763c9e7c655.tar.gz |
git would not generate non-ASCII digits to describe hunk offsets, so don't waste more time than necessary to make sense of non-ASCII digit chars for line offsets.
Diffstat (limited to 'lib/PublicInbox/SolverGit.pm')
-rw-r--r-- | lib/PublicInbox/SolverGit.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/SolverGit.pm b/lib/PublicInbox/SolverGit.pm index 3841c567..81f99025 100644 --- a/lib/PublicInbox/SolverGit.pm +++ b/lib/PublicInbox/SolverGit.pm @@ -206,7 +206,7 @@ sub find_extract_diff ($$$) { } my $msgs = $srch->query($q, { relevance => 1 }); - my $re = qr/\Aindex ($pre[a-f0-9]*)\.\.($post[a-f0-9]*)(?: (\d+))?/; + my $re = qr/\Aindex ($pre[a-f0-9]*)\.\.($post[a-f0-9]*)(?: ([0-9]+))?/; my $di; foreach my $smsg (@$msgs) { |