{"thread":{"id":"5752","subject":"[PATCH] gitweb: Add snapshot to shortlog","startedAt":"2006-09-28T23:50:09Z","lastAt":"2006-10-06T13:57:52Z","messageCount":3,"participants":["Luben Tuikov","Jakub Narebski","Petr Baudis"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"27955","messageId":"20060928235009.92537.qmail@web31811.mail.mud.yahoo.com","threadId":"5752","inReplyTo":null,"subject":"[PATCH] gitweb: Add snapshot to shortlog","fromName":"Luben Tuikov","fromEmail":"ltuikov@yahoo.com","sentAt":"2006-09-28T23:50:09Z","receivedAt":"2006-09-28T23:50:09Z","isPatch":true,"sender":{"key":"ltuikov@yahoo.com","avatar":null},"body":"Add snapshot to each commit-row of shortlog.\n\nSigned-off-by: Luben Tuikov <ltuikov@yahoo.com>\n---\n gitweb/gitweb.perl |    3 ++-\n 1 files changed, 2 insertions(+), 1 deletions(-)\n\n\ndiff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\nindex a2f07cc..953a0ef 100755\n--- a/gitweb/gitweb.perl\n+++ b/gitweb/gitweb.perl\n@@ -2021,7 +2021,8 @@ sub git_shortlog_body {\n \t\tprint \"</td>\\n\" .\n \t\t      \"<td class=\\\"link\\\">\" .\n \t\t      $cgi->a({-href => href(action=>\"commitdiff\", hash=>$commit)}, \"commitdiff\") . \" | \" .\n-\t\t      $cgi->a({-href => href(action=>\"tree\", hash=>$commit, hash_base=>$commit)}, \"tree\");\n+\t\t      $cgi->a({-href => href(action=>\"tree\", hash=>$commit, hash_base=>$commit)}, \"tree\") . \" | \" .\n+\t\t      $cgi->a({-href => href(action=>\"snapshot\", hash=>$commit)}, \"snapshot\");\n \t\tprint \"</td>\\n\" .\n \t\t      \"</tr>\\n\";\n \t}\n-- \n1.4.2.1.g05f0f\n\n"},{"id":"28141","messageId":"eft97f$un0$3@sea.gmane.org","threadId":"5752","inReplyTo":"20060928235009.92537.qmail@web31811.mail.mud.yahoo.com","subject":"Re: [PATCH] gitweb: Add snapshot to shortlog","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2006-10-03T09:07:23Z","receivedAt":"2006-10-03T09:07:23Z","isPatch":true,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Luben Tuikov wrote:\n\n> Add snapshot to each commit-row of shortlog.\n\nYou should add it conditionally, checking for gitweb_have_snapshot.\n-- \nJakub Narebski\nWarsaw, Poland\nShadeHawk on #git\n"},{"id":"28288","messageId":"20061006135752.26493.63501.stgit@rover","threadId":"5752","inReplyTo":"eft97f$un0$3@sea.gmane.org","subject":"[PATCH] Show snapshot link in shortlog only if have_snapsho","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2006-10-06T13:57:52Z","receivedAt":"2006-10-06T13:57:52Z","isPatch":true,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"Signed-off-by: Petr Baudis <pasky@suse.cz>\n---\n\n gitweb/gitweb.perl |    6 ++++--\n 1 files changed, 4 insertions(+), 2 deletions(-)\n\ndiff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\nindex 5c7d95b..bcb41cc 100755\n--- a/gitweb/gitweb.perl\n+++ b/gitweb/gitweb.perl\n@@ -2098,8 +2098,10 @@ sub git_shortlog_body {\n \t\tprint \"</td>\\n\" .\n \t\t      \"<td class=\\\"link\\\">\" .\n \t\t      $cgi->a({-href => href(action=>\"commitdiff\", hash=>$commit)}, \"commitdiff\") . \" | \" .\n-\t\t      $cgi->a({-href => href(action=>\"tree\", hash=>$commit, hash_base=>$commit)}, \"tree\") . \" | \" .\n-\t\t      $cgi->a({-href => href(action=>\"snapshot\", hash=>$commit)}, \"snapshot\");\n+\t\t      $cgi->a({-href => href(action=>\"tree\", hash=>$commit, hash_base=>$commit)}, \"tree\");\n+\t\tif (gitweb_have_snapshot()) {\n+\t\t\tprint \" | \" . $cgi->a({-href => href(action=>\"snapshot\", hash=>$commit)}, \"snapshot\");\n+\t\t}\n \t\tprint \"</td>\\n\" .\n \t\t      \"</tr>\\n\";\n \t}\n"}]}