From: Simon Ruderich Date: Sun, 17 Mar 2013 15:26:28 +0000 (+0100) Subject: tig.pl: Fix graphs with "\". X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=cf2f4142baba6dc0bcc9d8af37e83cb8ca3add0e tig.pl: Fix graphs with "\". --- diff --git a/tig.pl b/tig.pl index 53c2e36..d7272a3 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);