From: Luben Tuikov Date: Sat, 1 Jul 2006 02:11:18 +0000 (-0700) Subject: gitweb: Enable tree (directory) history display X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/d4ba83082e3d029fc4b983736b937f4b1279794eb5dea2240dde53dc7fe163c3 gitweb: Enable tree (directory) history display This patch allows history display of whole trees/directories a la "git-rev-list HEAD -- ". 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 Signed-off-by: Junio C Hamano --- diff --git a/gitweb.cgi b/gitweb.cgi index 10f8fda..89a410b 100755 --- a/gitweb.cgi +++ b/gitweb.cgi @@ -1676,6 +1676,7 @@ sub git_tree { "\n" . "" . $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") . "\n"; } print "\n";