]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Enable tree (directory) history display
authorLuben Tuikov <redacted>
Sat, 1 Jul 2006 02:11:18 +0000 (19:11 -0700)
committerLady <redacted>
Sat, 4 Apr 2026 18:43:37 +0000 (14:43 -0400)
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.cgi

index 10f8fda2adb3c36866d7165512a5eebe5e65cda70b960f276979b590c1ca5dfb..89a410be11a3daff5b83817c07e055636f8218e34b19528f3550ed3a96ea79bb 100755 (executable)
@@ -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";
This page took 0.264623 seconds and 4 git commands to generate.