aboutsummaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-08-08 16:12:11 +0200
committerShawn O. Pearce <spearce@spearce.org>2008-09-25 08:49:13 -0700
commitec3e97b84e739946413194c563a12779efda2155 (patch)
tree33357bb0af7a755bfb0174e1ff989c0983b82fc3 /gitweb
parentde813435621b914f2b3e148c6cc94ab0066300c3 (diff)
downloadgit-ec3e97b84e739946413194c563a12779efda2155.tar.gz
git-ec3e97b84e739946413194c563a12779efda2155.tar.xz
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>
Diffstat (limited to 'gitweb')
-rwxr-xr-xgitweb/gitweb.perl6
1 files changed, 5 insertions, 1 deletions
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 = '';