open STDOUT, '|-', $pager or die $!;
}
-while (my $line = <$fh>) {
+while (<$fh>) {
# History graph line.
- if ($line =~ m{^([|/\\_ ]+)$}) {
- print colored($line, $color_graph);
+ if (m{^([|/\\_ ]+)$}) {
+ print colored($_, $color_graph);
next;
}
# Commit line.
- $line =~ /^([ *|.\\-]+)\x00(.+)\x00(.+)\x00(.+)\x00(.*)\x00(.*)$/
- or die $line;
+ /^([ *|.\\-]+)\x00(.+)\x00(.+)\x00(.+)\x00(.*)\x00(.*)$/ or die $_;
my $prefix = $1;
my $hash = colored($2, $color_hash);
my $date = POSIX::strftime('%Y-%m-%d', localtime($3));