{"thread":{"id":"2166","subject":"[PATCH] [PATCH] add commitdiff option in history window","startedAt":"2005-10-20T17:28:14Z","lastAt":"2005-10-20T17:28:14Z","messageCount":1,"participants":["Paolo 'Blaisorblade' Giarrusso"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"10363","messageId":"20051020172813.29210.3433.stgit@zion.home.lan","threadId":"2166","inReplyTo":null,"subject":"[PATCH] [PATCH] add commitdiff option in history window","fromName":"Paolo 'Blaisorblade' Giarrusso","fromEmail":"blaisorblade@yahoo.it","sentAt":"2005-10-20T17:28:14Z","receivedAt":"2005-10-20T17:28:14Z","isPatch":true,"sender":{"key":"blaisorblade@yahoo.it","avatar":null},"body":"In the history window I like to have the commitdiff link too. Hope this\npatch is correct. Thanks for review.\n\nSigned-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>\n---\n\n gitweb.cgi |    1 +\n 1 files changed, 1 insertions(+), 0 deletions(-)\n\ndiff --git a/gitweb.cgi b/gitweb.cgi\n--- a/gitweb.cgi\n+++ b/gitweb.cgi\n@@ -2028,6 +2028,7 @@ sub git_history {\n \t\t\t      escapeHTML(chop_str($co{'title'}, 50)) . \"</b>\") . \"</td>\\n\" .\n \t\t\t      \"<td class=\\\"link\\\">\" .\n \t\t\t      $cgi->a({-href => \"$my_uri?p=$project;a=commit;h=$commit\"}, \"commit\") .\n+\t\t\t      \" | \" . $cgi->a({-href => \"$my_uri?p=$project;a=commitdiff;h=$commit\"}, \"commitdiff\") .\n \t\t\t      \" | \" . $cgi->a({-href => \"$my_uri?p=$project;a=blob;hb=$commit;f=$file_name\"}, \"blob\");\n \t\t\tmy $blob = git_get_hash_by_path($hash, $file_name);\n \t\t\tmy $blob_parent = git_get_hash_by_path($commit, $file_name);\n"}]}