gitweb: Relabel "head" as "HEAD"
"head" is a reference in refs/heads/, while those labels mean HEAD, the latest revision of the default branch. Signed-off-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>
Petr Baudis committed
Sep 22, 2006 at 03:19 UTC
f35274dad8e617c1ea2c55c2b7b0fbbcb1abd8ae
1 file changed
+4
-4
gitweb/gitweb.perl
+4
-4
@@ -2441,7 +2441,7 @@ sub git_blame2 {
2441
"history") .
2442
" | " .
2443
$cgi->a({-href => href(action=>"blame", file_name=>$file_name)},
2444
- "head");
2444
+ "HEAD");
2445
git_print_page_nav('','', $hash_base,$co{'tree'},$hash_base, $formats_nav);
2446
git_print_header_div('commit', esc_html($co{'title'}), $hash_base);
2447
git_print_page_path($file_name, $ftype, $hash_base);
@@ -2510,7 +2510,7 @@ sub git_blame {
2510
"history") .
2511
" | " .
2512
$cgi->a({-href => href(action=>"blame", file_name=>$file_name)},
2513
- "head");
2513
+ "HEAD");
2514
git_print_page_nav('','', $hash_base,$co{'tree'},$hash_base, $formats_nav);
2515
git_print_header_div('commit', esc_html($co{'title'}), $hash_base);
2516
git_print_page_path($file_name, 'blob', $hash_base);
@@ -2694,7 +2694,7 @@ sub git_blob {
2694
" | " .
2695
$cgi->a({-href => href(action=>"blob",
2696
hash_base=>"HEAD", file_name=>$file_name)},
2697
- "head");
2697
+ "HEAD");
2698
} else {
2699
$formats_nav .=
2700
$cgi->a({-href => href(action=>"blob_plain", hash=>$hash)}, "raw");
@@ -2757,7 +2757,7 @@ sub git_tree {
2757
"history"),
2758
$cgi->a({-href => href(action=>"tree",
2759
hash_base=>"HEAD", file_name=>$file_name)},
2760
- "head");
2760
+ "HEAD"),
2761
}
2762
if ($have_snapshot) {
2763
# FIXME: Should be available when we have no hash base as well.