Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'lb/contrib-contacts-looser-diff-parsing'
author
Junio C Hamano
<gitster@pobox.com>
Fri, 14 Mar 2014 21:24:59 +0000
(14:24 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 14 Mar 2014 21:24:59 +0000
(14:24 -0700)
* lb/contrib-contacts-looser-diff-parsing:
git-contacts: do not fail parsing of good diffs
contrib/contacts/git-contacts
patch
|
blob
|
history
raw
(from parent 1:
08f3630
)
diff --git
a/contrib/contacts/git-contacts
b/contrib/contacts/git-contacts
index 428cc1a9a1367e36c2739cb226a0ffdd2704ce82..dbe2abf27730e20fcbd692012e9dd07a2e70404f 100755
(executable)
--- a/
contrib/contacts/git-contacts
+++ b/
contrib/contacts/git-contacts
@@
-96,8
+96,6
@@
sub scan_patches {
next unless $id;
if (m{^--- (?:a/(.+)|/dev/null)$}) {
$source = $1;
- } elsif (/^--- /) {
- die "Cannot parse hunk source: $_\n";
} elsif (/^@@ -(\d+)(?:,(\d+))?/ && $source) {
my $len = defined($2) ? $2 : 1;
push @{$sources->{$source}{$id}}, [$1, $len] if $len;