summaryrefslogtreecommitdiff
path: root/gitweb.cgi
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-10-04 01:12:47 +0200
committerKay Sievers <kay.sievers@suse.de>2005-10-04 01:12:47 +0200
commitd8f1c5c2f37433ef9ce56847d81314ea2798ac3c (patch)
tree9deb1aff8a499e2fb781950ed74d9b27c9c10a7a /gitweb.cgi
parent972062bbb8d097186eee6772e7486f5a4a025d5a (diff)
rename "branches" to "heads"
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'gitweb.cgi')
-rwxr-xr-xgitweb.cgi18
1 files changed, 9 insertions, 9 deletions
diff --git a/gitweb.cgi b/gitweb.cgi
index 9dea33489b..fc91907885 100755
--- a/gitweb.cgi
+++ b/gitweb.cgi
@@ -5,7 +5,7 @@
# (C) 2005, Kay Sievers <kay.sievers@vrfy.org>
# (C) 2005, Christian Gierke <ch@gierke.de>
#
-# This program is licensed under the GPL v2, or a later version
+# This program is licensed under the GPLv2
use strict;
use warnings;
@@ -152,8 +152,8 @@ sub validate_input {
if (!defined $action || $action eq "summary") {
git_summary();
exit;
-} elsif ($action eq "branches") {
- git_branches();
+} elsif ($action eq "heads") {
+ git_heads();
exit;
} elsif ($action eq "tags") {
git_tags();
@@ -1067,15 +1067,15 @@ sub git_summary {
print "</table\n>";
}
- my $branchlist = git_read_refs("refs/heads");
- if (defined @$branchlist) {
+ my $headlist = git_read_refs("refs/heads");
+ if (defined @$headlist) {
print "<div>\n" .
- $cgi->a({-href => "$my_uri?p=$project;a=branches", -class => "title"}, "branches") .
+ $cgi->a({-href => "$my_uri?p=$project;a=heads", -class => "title"}, "heads") .
"</div>\n";
my $i = 16;
print "<table cellspacing=\"0\">\n";
my $alternate = 0;
- foreach my $entry (@$branchlist) {
+ foreach my $entry (@$headlist) {
my %tag = %$entry;
if ($alternate) {
print "<tr class=\"dark\">\n";
@@ -1095,7 +1095,7 @@ sub git_summary {
"</td>\n" .
"</tr>";
} else {
- print "<td>" . $cgi->a({-href => "$my_uri?p=$project;a=branches"}, "...") . "</td>\n" .
+ print "<td>" . $cgi->a({-href => "$my_uri?p=$project;a=heads"}, "...") . "</td>\n" .
"</tr>";
last;
}
@@ -1203,7 +1203,7 @@ sub git_tags {
git_footer_html();
}
-sub git_branches {
+sub git_heads {
my $head = git_read_hash("$project/HEAD");
git_header_html();
print "<div class=\"page_nav\">\n" .