]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - tig.pl
tig.pl: Display refs after the author.
[config/dotfiles.git] / tig.pl
diff --git a/tig.pl b/tig.pl
index 1ae3e75ef5a9931868a946f1b431148251c68475..85bebb6c5940bd2087374dab2fae7361e1608b1a 100755 (executable)
--- 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 $!;