Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
rename "branches" to "heads"
author
Kay Sievers
<kay.sievers@suse.de>
Mon, 3 Oct 2005 23:12:47 +0000
(
01:12
+0200)
committer
Kay Sievers
<kay.sievers@suse.de>
Mon, 3 Oct 2005 23:12:47 +0000
(
01:12
+0200)
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
gitweb.cgi
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
972062b
)
diff --git
a/gitweb.cgi
b/gitweb.cgi
index 9dea33489b9caaafb86d21a7acc98d8bd6ccedfd..fc91907885afe95faedddcaae5d978040580d697 100755
(executable)
--- 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>
#
# (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 GPL
v2
use strict;
use warnings;
use strict;
use warnings;
@@
-152,8
+152,8
@@
sub validate_input {
if (!defined $action || $action eq "summary") {
git_summary();
exit;
if (!defined $action || $action eq "summary") {
git_summary();
exit;
-} elsif ($action eq "
branche
s") {
- git_
branche
s();
+} elsif ($action eq "
head
s") {
+ git_
head
s();
exit;
} elsif ($action eq "tags") {
git_tags();
exit;
} elsif ($action eq "tags") {
git_tags();
@@
-1067,15
+1067,15
@@
sub git_summary {
print "</table\n>";
}
print "</table\n>";
}
- my $
branch
list = git_read_refs("refs/heads");
- if (defined @$
branch
list) {
+ my $
head
list = git_read_refs("refs/heads");
+ if (defined @$
head
list) {
print "<div>\n" .
print "<div>\n" .
- $cgi->a({-href => "$my_uri?p=$project;a=
branches", -class => "title"}, "branche
s") .
+ $cgi->a({-href => "$my_uri?p=$project;a=
heads", -class => "title"}, "head
s") .
"</div>\n";
my $i = 16;
print "<table cellspacing=\"0\">\n";
my $alternate = 0;
"</div>\n";
my $i = 16;
print "<table cellspacing=\"0\">\n";
my $alternate = 0;
- foreach my $entry (@$
branch
list) {
+ foreach my $entry (@$
head
list) {
my %tag = %$entry;
if ($alternate) {
print "<tr class=\"dark\">\n";
my %tag = %$entry;
if ($alternate) {
print "<tr class=\"dark\">\n";
@@
-1095,7
+1095,7
@@
sub git_summary {
"</td>\n" .
"</tr>";
} else {
"</td>\n" .
"</tr>";
} else {
- print "<td>" . $cgi->a({-href => "$my_uri?p=$project;a=
branche
s"}, "...") . "</td>\n" .
+ print "<td>" . $cgi->a({-href => "$my_uri?p=$project;a=
head
s"}, "...") . "</td>\n" .
"</tr>";
last;
}
"</tr>";
last;
}
@@
-1203,7
+1203,7
@@
sub git_tags {
git_footer_html();
}
git_footer_html();
}
-sub git_
branche
s {
+sub git_
head
s {
my $head = git_read_hash("$project/HEAD");
git_header_html();
print "<div class=\"page_nav\">\n" .
my $head = git_read_hash("$project/HEAD");
git_header_html();
print "<div class=\"page_nav\">\n" .