From: Simon Ruderich Date: Mon, 11 Mar 2013 13:50:11 +0000 (+0100) Subject: tig.pl: Display refs after the author. X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=62446db13e52201f26c0a03d9e9e0d8b9c88e886 tig.pl: Display refs after the author. --- 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 $!;