X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=tig.pl;h=85bebb6c5940bd2087374dab2fae7361e1608b1a;hb=62446db13e52201f26c0a03d9e9e0d8b9c88e886;hp=1ae3e75ef5a9931868a946f1b431148251c68475;hpb=fee56e3256177d2410f618469bcb3ee36bc0b21f;p=config%2Fdotfiles.git diff --git a/tig.pl b/tig.pl index 1ae3e75..85bebb6 100755 --- a/tig.pl +++ b/tig.pl @@ -64,8 +64,12 @@ while (my $line = <$fh>) { # Strip leading whitespace. $refs =~ s/^\s+//; - printf "%s %s %s %s %s %s\n", - $prefix, $hash, $date, $author, $message, $refs; + if ($refs ne '') { + $refs = ' ' . $refs; + } + + printf "%s %s %s %s%s %s\n", + $prefix, $hash, $date, $author, $refs, $message; } close $fh or die $!;