From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id CD0BF1F5C7 for ; Tue, 4 Oct 2022 19:12:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1664910761; bh=tuMQkdZGqNpF1zcQNE1j9v6dY+Dz8X2kRqDKuA8OBPU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=shzyaDFF66Ga8XOHH7aiRqXFF/MYUCs7GhwZZRzuV6uc6Rer8RxSajdt2pGtDL4xf fXRmHcpmxMPUOyS9A6Yt3qmLRE0XWexJVsqNOvxOfECAIu86cgyGnd1rU0R16Z+aE9 5AWOOu+vOEHxBMY0CQrH8PyCI28ssVNRQQ8GfKkQ= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 10/10] www_coderepo: start a top nav bar in summary view Date: Tue, 4 Oct 2022 19:12:40 +0000 Message-Id: <20221004191240.1056304-11-e@80x24.org> In-Reply-To: <20221004191240.1056304-1-e@80x24.org> References: <20221004191240.1056304-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This needs to be expanded, but quick links to heads/tags/README shouldn't hurt... --- lib/PublicInbox/WwwCoderepo.pm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/PublicInbox/WwwCoderepo.pm b/lib/PublicInbox/WwwCoderepo.pm index fb510b28..6c119b28 100644 --- a/lib/PublicInbox/WwwCoderepo.pm +++ b/lib/PublicInbox/WwwCoderepo.pm @@ -55,8 +55,16 @@ sub summary_finish { # git log my @r = split(/\n/s, pop(@x) // ''); my $last = pop(@r) if scalar(@r) > $ctx->{wcr}->{summary_log}; - print $zfh '
$ '.
-		"git log --pretty=format:'%h %s (%cs)%d'\n";
+	print $zfh <
+about heads tags
+
+\$ git log --pretty=format:'%h %s (%cs)%d'
+EOM
 	for (@r) {
 		my $d; # decorations
 		s/^ \(([^\)]+)\)// and $d = $1;