aboutsummaryrefslogtreecommitdiff
diff refs
from:
to:
flip
diff options
context:
space:
mode:
-rw-r--r--cgit.h1
-rw-r--r--shared.c3
-rw-r--r--ui-summary.c10
3 files changed, 3 insertions, 11 deletions
diff --git a/cgit.h b/cgit.h
index 53e1336..75e919b 100644
--- a/cgit.h
+++ b/cgit.h
@@ -143,7 +143,6 @@ extern int cgit_cache_dynamic_ttl;
extern int cgit_cache_static_ttl;
extern int cgit_cache_max_create_time;
extern int cgit_summary_log;
-extern int cgit_summary_tags;
extern int cgit_max_msg_len;
extern int cgit_max_repodesc_len;
diff --git a/shared.c b/shared.c
index 7e5eaba..d815cb1 100644
--- a/shared.c
+++ b/shared.c
@@ -38,7 +38,6 @@ int cgit_cache_dynamic_ttl = 5;
int cgit_cache_static_ttl = -1;
int cgit_cache_max_create_time = 5;
int cgit_summary_log = 0;
-int cgit_summary_tags = 0;
int cgit_renamelimit = -1;
int cgit_max_msg_len = 60;
@@ -182,8 +181,6 @@ void cgit_global_config_cb(const char *name, const char *value)
cgit_max_commit_count = atoi(value);
else if (!strcmp(name, "summary-log"))
cgit_summary_log = atoi(value);
- else if (!strcmp(name, "summary-tags"))
- cgit_summary_tags = atoi(value);
else if (!strcmp(name, "agefile"))
cgit_agefile = xstrdup(value);
else if (!strcmp(name, "renamelimit"))
diff --git a/ui-summary.c b/ui-summary.c
index 3d5eda8..43582da 100644
--- a/ui-summary.c
+++ b/ui-summary.c
@@ -162,7 +162,7 @@ static void cgit_print_branches()
cgit_print_branch(list.refs[i]);
}
-static void cgit_print_tags(int maxcount)
+static void cgit_print_tags()
{
struct reflist list;
int i;
@@ -174,12 +174,8 @@ static void cgit_print_tags(int maxcount)
if (list.count == 0)
return;
qsort(list.refs, list.count, sizeof(*list.refs), cmp_tag_age);
- if (!maxcount)
- maxcount = list.count;
- else if (maxcount > list.count)
- maxcount = list.count;
print_tag_header();
- for(i=0; i<maxcount; i++)
+ for(i=0; i<list.count; i++)
print_tag(list.refs[i]);
}
@@ -210,6 +206,6 @@ void cgit_print_summary()
html("<tr class='nohover'><td colspan='4'>&nbsp;</td></tr>");
cgit_print_branches();
html("<tr class='nohover'><td colspan='4'>&nbsp;</td></tr>");
- cgit_print_tags(cgit_summary_tags);
+ cgit_print_tags();
html("</table>");
}