From: Luben Tuikov <ltuikov@yahoo.com> Date: Sat, 1 Jul 2006 02:11:18 +0000 (-0700) Subject: gitweb: Enable tree (directory) history display X-Git-Tag: v1.4.2-rc1~81^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85b7cfb1036b4218d13cbc215729ad083a61a0ea;p=git 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> --- diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi index 1007742153..efffc8d078 100755 --- a/gitweb/gitweb.cgi +++ b/gitweb/gitweb.cgi @@ -1676,6 +1676,7 @@ sub git_tree { "</td>\n" . "<td class=\"link\">" . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=tree;h=$t_hash$base_key;f=$base$t_name")}, "tree") . + " | " . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=history;h=$hash_base;f=$base$t_name")}, "history") . "</td>\n"; } print "</tr>\n";