@matheusbsbs / matheus-bagliano / commits / 85b7cfb103
Fork 0

gitweb: Enable tree (directory) history display

This patch allows history display of whole trees/directories a la "git-rev-list HEAD -- <dir or file>". I find this useful especially when a project lives in its own subdirectory, as opposed to being all of the GIT repository (i.e. when a sub-project is merged into a super-project). Signed-off-by: Luben Tuikov <ltuikov@yahoo.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Luben Tuikov committed Jun 30, 2006 at 19:11 UTC 85b7cfb1036b4218d13cbc215729ad083a61a0ea
1 file changed +1
gitweb/gitweb.cgi
+1
@@ -1676,6 +1676,7 @@ sub git_tree {
1676 "</td>\n" .
1677 "<td class=\"link\">" .
1678 $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=tree;h=$t_hash$base_key;f=$base$t_name")}, "tree") .
1679 + " | " . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=history;h=$hash_base;f=$base$t_name")}, "history") .
1680 "</td>\n";
1681 }
1682 print "</tr>\n";