]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
tig.pl: Allow empty commit messages.
authorSimon Ruderich <simon@ruderich.org>
Sun, 17 Mar 2013 15:26:17 +0000 (16:26 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sun, 17 Mar 2013 15:26:17 +0000 (16:26 +0100)
tig.pl

diff --git a/tig.pl b/tig.pl
index e08d79c502c1409b41b8f7c80da46c86f7108781..53c2e3655f231990a4619689a81a83c9563e501d 100755 (executable)
--- 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);