]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
tig.pl: Fix graphs with "." and "-".
authorSimon Ruderich <simon@ruderich.org>
Mon, 11 Mar 2013 16:28:45 +0000 (17:28 +0100)
committerSimon Ruderich <simon@ruderich.org>
Mon, 11 Mar 2013 16:28:45 +0000 (17:28 +0100)
tig.pl

diff --git a/tig.pl b/tig.pl
index 5fc7625ea46ff91162aab61c897dc3fdc06790f3..a11921818af301a9a26a403b35043553dae8e19a 100755 (executable)
--- a/tig.pl
+++ b/tig.pl
@@ -51,7 +51,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);