From: Simon Ruderich Date: Sun, 17 Mar 2013 15:26:17 +0000 (+0100) Subject: tig.pl: Allow empty commit messages. X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=5e06084ec9f4e62239f57dae48881c9f99a19101 tig.pl: Allow empty commit messages. --- diff --git a/tig.pl b/tig.pl index e08d79c..53c2e36 100755 --- a/tig.pl +++ b/tig.pl @@ -68,7 +68,7 @@ while (my $line = <$fh>) { } # Commit line. - $line =~ /^([ *|.-]+)\x00(.+)\x00(.+)\x00(.+)\x00(.+)\x00(.*)$/ + $line =~ /^([ *|.-]+)\x00(.+)\x00(.+)\x00(.+)\x00(.*)\x00(.*)$/ or die $line; my $prefix = $1; my $hash = colored($2, $color_hash);