diff options
author | Luben Tuikov <ltuikov@yahoo.com> | 2006-07-23 13:36:32 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-07-24 18:21:52 -0700 |
commit | 4f7b34c98f6f3853c6b82a85f3e49121c59180f7 (patch) | |
tree | ca540c61d83d28986c7eaa7338ffa41c1ea55e7a /gitweb | |
parent | 1f2857ea32fa82ba6039b7fd298dc763b1e6c112 (diff) | |
download | git-4f7b34c98f6f3853c6b82a85f3e49121c59180f7.tar.gz |
gitweb.cgi: git_blame2: Allow back-trekking through commits
This patch adds the capability of back-trekking through
commits from git_blame2() as follows:
blame2->commit->blame2->commit->blame2->...->initial commit.
Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'gitweb')
-rwxr-xr-x | gitweb/gitweb.cgi | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi index 57f4a2e263..2c2d9c8d8f 100755 --- a/gitweb/gitweb.cgi +++ b/gitweb/gitweb.cgi @@ -2022,7 +2022,13 @@ sub git_commit { print " | " . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=commitdiff;h=$hash")}, "commitdiff"); } print " | " . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=tree;h=$co{'tree'};hb=$hash")}, "tree") . "\n" . - "<br/><br/></div>\n"; + "<br/>\n"; + if (defined $file_name && defined $co{'parent'}) { + my $parent = $co{'parent'}; + print $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=blame;hb=$parent;f=$file_name")}, "blame") . "\n"; + } + print "<br/></div>\n"; + if (defined $co{'parent'}) { print "<div>\n" . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=commitdiff;h=$hash"), -class => "title"}, esc_html($co{'title'}) . $ref) . "\n" . |