]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
repobrowse: log display for parents includes commit link
authorEric Wong <e@80x24.org>
Thu, 31 Dec 2015 03:22:33 +0000 (03:22 +0000)
committerEric Wong <e@80x24.org>
Tue, 5 Apr 2016 18:58:27 +0000 (18:58 +0000)
For consistency, it probably makes sense to include the
extra link to each of the parent commits for the user
to follow.

lib/PublicInbox/RepoBrowseGitLog.pm

index a4245d0addddb00fd09afe66392b4614537b894c..8a9ad3cb1dcb92b8c259200c3e0b165803b70ee1 100644 (file)
@@ -107,8 +107,9 @@ sub git_log_stream {
                next if $seen{$p};
                $seen{$p} = ++$np;
                my $s = git_commit_title($git, $p);
+               $m .= qq(\n<a\nhref="?h=$p$showmsg">$p</a>\t);
                $s = defined($s) ? utf8_html($s) : '';
-               $m .= qq(\n<a\nhref="?h=$p$showmsg">$p</a>\t$s);
+               $m .= qq(<a\nhref="${rel}commit?id=$p">$s</a>);
        }
        my $foot = $showmsg ? "<pre>\t\t$x\n\n" : "\n\t\t$x\n\n";
        if ($np == 0) {
@@ -116,7 +117,7 @@ sub git_log_stream {
        } elsif ($np > 1) {
                $foot .= "Parent commits to follow (multiple choice):\n";
        } else {
-               $foot .= "Next parent:\n";
+               $foot .= "Next parent to follow:\n";
        }
        $fh->write($foot .= $m . '</pre></body></html>');
 }