Skip to content

Instantly share code, notes, and snippets.

@guyromm
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save guyromm/9924533 to your computer and use it in GitHub Desktop.

Select an option

Save guyromm/9924533 to your computer and use it in GitHub Desktop.
--- /root/gitweb.cgi 2014-04-02 00:19:56.885072998 +0200
+++ /usr/lib/cgi-bin/gitweb.cgi 2014-04-02 00:38:59.125072998 +0200
@@ -5822,6 +5822,7 @@
if (defined $snapshot_links) {
print " | " . $snapshot_links;
}
+ print " | ".$commit;
print "</td>\n" .
"</tr>\n";
}
@@ -5982,6 +5983,7 @@
"<td class=\"link\">" .
$cgi->a({-href => href(action=>"shortlog", hash=>$ref{'fullname'})}, "shortlog") . " | " .
$cgi->a({-href => href(action=>"log", hash=>$ref{'fullname'})}, "log") . " | " .
+ $cgi->a({-href => href(action=>"commitdiff", hash=>$ref{'fullname'}, "hash_parent"=>"staging")},"staging") . " | " .
$cgi->a({-href => href(action=>"tree", hash=>$ref{'fullname'}, hash_base=>$ref{'fullname'})}, "tree") .
"</td>\n" .
"</tr>";
@guyromm
Copy link
Author

guyromm commented Apr 1, 2014

  1. указываем коммит в каждой ссылке
  2. добавляем ссылку на дифф со стейджингом к каждому комиту.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment