{"thread":{"id":"14890","subject":"[PATCH] gitweb: shortlog now also obeys $hash_parent","startedAt":"2008-08-08T14:12:11Z","lastAt":"2008-09-25T15:44:59Z","messageCount":2,"participants":["Giuseppe Bilotta","Petr Baudis"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"86498","messageId":"1218204731-9931-1-git-send-email-giuseppe.bilotta@gmail.com","threadId":"14890","inReplyTo":null,"subject":"[PATCH] gitweb: shortlog now also obeys $hash_parent","fromName":"Giuseppe Bilotta","fromEmail":"giuseppe.bilotta@gmail.com","sentAt":"2008-08-08T14:12:11Z","receivedAt":"2008-08-08T14:12:11Z","isPatch":true,"sender":{"key":"giuseppe.bilotta@gmail.com","avatar":"https://avatars.githubusercontent.com/u/1464?v=4"},"body":"If $hash_parent is defined, shortlog now limits the list of commits at\nthose between $hash_parent (exclusive) and $hash (inclusive).\n\nSigned-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>\n---\n gitweb/gitweb.perl |    6 +++++-\n 1 files changed, 5 insertions(+), 1 deletions(-)\n\ndiff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\nindex a12ce87..d811dd4 100755\n--- a/gitweb/gitweb.perl\n+++ b/gitweb/gitweb.perl\n@@ -5472,7 +5472,11 @@ sub git_shortlog {\n \t}\n \tmy $refs = git_get_references();\n \n-\tmy @commitlist = parse_commits($hash, 101, (100 * $page));\n+\tmy $commit_hash = $hash;\n+\tif (defined $hash_parent) {\n+\t\t$commit_hash = \"$hash_parent..$hash\";\n+\t}\n+\tmy @commitlist = parse_commits($commit_hash, 101, (100 * $page));\n \n \tmy $paging_nav = format_paging_nav('shortlog', $hash, $head, $page, $#commitlist >= 100);\n \tmy $next_link = '';\n-- \n1.5.6.3\n"},{"id":"91611","messageId":"20080925154459.GN10544@machine.or.cz","threadId":"14890","inReplyTo":"1218204731-9931-1-git-send-email-giuseppe.bilotta@gmail.com","subject":"Re: [PATCH] gitweb: shortlog now also obeys $hash_parent","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2008-09-25T15:44:59Z","receivedAt":"2008-09-25T15:44:59Z","isPatch":true,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"On Fri, Aug 08, 2008 at 04:12:11PM +0200, Giuseppe Bilotta wrote:\n> If $hash_parent is defined, shortlog now limits the list of commits at\n> those between $hash_parent (exclusive) and $hash (inclusive).\n> \n> Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>\n\nThat sounds like a useful feature.\n\nAcked-by: Petr Baudis <pasky@suse.cz>\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nPeople who take cold baths never have rheumatism, but they have\ncold baths.\n"}]}