* [PATCH] gitweb: shortlog now also obeys $hash_parent
@ 2008-08-08 14:12 Giuseppe Bilotta
2008-09-25 15:44 ` Petr Baudis
0 siblings, 1 reply; 2+ messages in thread
From: Giuseppe Bilotta @ 2008-08-08 14:12 UTC (permalink / raw)
To: git; +Cc: Jakub Narebski, Petr Baudis, Giuseppe Bilotta
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>
---
gitweb/gitweb.perl | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index a12ce87..d811dd4 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -5472,7 +5472,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 = '';
--
1.5.6.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] gitweb: shortlog now also obeys $hash_parent
2008-08-08 14:12 [PATCH] gitweb: shortlog now also obeys $hash_parent Giuseppe Bilotta
@ 2008-09-25 15:44 ` Petr Baudis
0 siblings, 0 replies; 2+ messages in thread
From: Petr Baudis @ 2008-09-25 15:44 UTC (permalink / raw)
To: Giuseppe Bilotta; +Cc: git, Jakub Narebski
On Fri, Aug 08, 2008 at 04:12:11PM +0200, Giuseppe Bilotta wrote:
> 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>
That sounds like a useful feature.
Acked-by: Petr Baudis <pasky@suse.cz>
--
Petr "Pasky" Baudis
People who take cold baths never have rheumatism, but they have
cold baths.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-25 15:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-08 14:12 [PATCH] gitweb: shortlog now also obeys $hash_parent Giuseppe Bilotta
2008-09-25 15:44 ` Petr Baudis
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).