Browse Source

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 <giuseppe.bilotta@gmail.com>
Acked-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
maint
Giuseppe Bilotta 17 years ago committed by Shawn O. Pearce
parent
commit
ec3e97b84e
  1. 6
      gitweb/gitweb.perl

6
gitweb/gitweb.perl

@ -5498,7 +5498,11 @@ sub git_shortlog { @@ -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 = '';

Loading…
Cancel
Save