From 62446db13e52201f26c0a03d9e9e0d8b9c88e886 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 11 Mar 2013 14:50:11 +0100 Subject: [PATCH] tig.pl: Display refs after the author. --- tig.pl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 $!; -- 2.45.2