From: Jakub Narebski <jnareb@gmail.com>
To: git@vger.kernel.org
Subject: Re: [PATCH] gitweb: Paginate history output
Date: Tue, 22 Aug 2006 10:08:47 +0200 [thread overview]
Message-ID: <ecee2g$b0l$1@sea.gmane.org> (raw)
In-Reply-To: 7vveols3c7.fsf@assigned-by-dhcp.cox.net
Junio C Hamano wrote:
> Jakub Narebski <jnareb@gmail.com> writes:
>
>> @@ -1559,6 +1562,7 @@ sub git_history_body {
>> next;
>> }
>>
>> + #my $ref = defined $refs ? format_ref_marker($refs, $commit) : '';
>> my $ref = format_ref_marker($refs, $commit);
>>
>> if ($alternate) {
>
> Do you want to change this or not? Make up your mind.
I'm not sure. This is an internal function, so $refs should
be defined. I'm not sure checking here is worth it.
This whole hunk could be removed.
>> + $paging_nav .= " ⋅ " .
>> + $cgi->a({-href => href(action=>"history", hash=>$hash, hash_base=>$hash_base,
>> + file_name=>$file_name, page=>$page-1),
>> + -accesskey => "p", -title => "Alt-p"}, "prev");
>
> This is something you inherited from the original and not your
> fault, but I am not sure if these -title entries are of good
> taste (we have corresponding "Alt-n" for "next"). Something
> more descriptive like "<Alt-p> for 100 newer changes", perhaps?
That would be better.
> Also, "first", "prev" and "next" have always confused me. Maybe
> "latest", "older" and "newer" are better labels for them?
"first" is only for pagination of "history" action, "shortlog",
"heads" and "tags" have "HEAD" there instead.
> Is 100 a good default? It feels a bit unbalanced compared to
> the height of the default summary page with descriptions, 16
> shortlog entries, 16 tags and 12 heads.
It's 16 heads (if you have that many), from what I remember
from source.
The purpose of summary page is to have everything at glance (it means
that it should be contained in one, two pages. The pagination of
output is to not send too much at once.
--
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
next prev parent reply other threads:[~2006-08-22 8:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-21 22:53 [PATCH] gitweb: Paginate history output Jakub Narebski
2006-08-22 6:15 ` Junio C Hamano
2006-08-22 8:08 ` Jakub Narebski [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-09-10 22:36 Jakub Narebski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='ecee2g$b0l$1@sea.gmane.org' \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).