summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuben Tuikov <ltuikov@yahoo.com>2006-07-01 02:11:18 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-07-02 01:29:13 (GMT)
commit85b7cfb1036b4218d13cbc215729ad083a61a0ea (patch)
tree8b9cb7ab0513479e54da623155903c52152c288e
parentcdd4037d7053647c97139ac77d4319124f17d47e (diff)
downloadgit-85b7cfb1036b4218d13cbc215729ad083a61a0ea.zip
git-85b7cfb1036b4218d13cbc215729ad083a61a0ea.tar.gz
git-85b7cfb1036b4218d13cbc215729ad083a61a0ea.tar.bz2
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>
-rwxr-xr-xgitweb/gitweb.cgi1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi
index 1007742..efffc8d 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";