Skip to content

Commit ed27751

Browse files
committed
Merge branch 'lb/contrib-contacts-looser-diff-parsing'
* lb/contrib-contacts-looser-diff-parsing: git-contacts: do not fail parsing of good diffs
2 parents 08f3630 + 8f72011 commit ed27751

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

contrib/contacts/git-contacts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ sub scan_patches {
9696
next unless $id;
9797
if (m{^--- (?:a/(.+)|/dev/null)$}) {
9898
$source = $1;
99-
} elsif (/^--- /) {
100-
die "Cannot parse hunk source: $_\n";
10199
} elsif (/^@@ -(\d+)(?:,(\d+))?/ && $source) {
102100
my $len = defined($2) ? $2 : 1;
103101
push @{$sources->{$source}{$id}}, [$1, $len] if $len;

0 commit comments

Comments
 (0)