From: Giuseppe Bilotta Date: Fri, 8 Aug 2008 14:12:11 +0000 (+0200) Subject: gitweb: shortlog now also obeys $hash_parent X-Git-Tag: v1.6.1-rc1~209 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ec3e97b84e739946413194c563a12779efda2155;p=git.git gitweb: shortlog now also obeys $hash_parent If $hash_parent is defined, shortlog now limits the list of commits at those between $hash_parent (exclusive) and $hash (inclusive). Signed-off-by: Giuseppe Bilotta Acked-by: Petr Baudis Signed-off-by: Shawn O. Pearce --- diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index da474d082..18e70a366 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -5498,7 +5498,11 @@ sub git_shortlog { } my $refs = git_get_references(); - my @commitlist = parse_commits($hash, 101, (100 * $page)); + my $commit_hash = $hash; + if (defined $hash_parent) { + $commit_hash = "$hash_parent..$hash"; + } + my @commitlist = parse_commits($commit_hash, 101, (100 * $page)); my $paging_nav = format_paging_nav('shortlog', $hash, $head, $page, $#commitlist >= 100); my $next_link = '';