[PATCH 3/8] deprecate option index-header
Jamie Couture
jamie.couture at gmail.com
Wed Mar 21 02:07:52 CET 2012
use root-readme instead of index-header
Signed-off-by: Jamie Couture <jamie.couture at gmail.com>
---
cgit.c | 2 --
cgit.h | 1 -
ui-repolist.c | 3 ---
3 files changed, 6 deletions(-)
diff --git a/cgit.c b/cgit.c
index b9b3a66..17f6be0 100644
--- a/cgit.c
+++ b/cgit.c
@@ -139,8 +139,6 @@ void config_cb(const char *name, const char *value)
ctx.cfg.header = xstrdup(value);
else if (!strcmp(name, "logo"))
ctx.cfg.logo = xstrdup(value);
- else if (!strcmp(name, "index-header"))
- ctx.cfg.index_header = xstrdup(value);
else if (!strcmp(name, "index-info"))
ctx.cfg.index_info = xstrdup(value);
else if (!strcmp(name, "logo-link"))
diff --git a/cgit.h b/cgit.h
index 6ee6769..a8ec5ca 100644
--- a/cgit.h
+++ b/cgit.h
@@ -173,7 +173,6 @@ struct cgit_config {
char *footer;
char *head_include;
char *header;
- char *index_header;
char *index_info;
char *logo;
char *logo_link;
diff --git a/ui-repolist.c b/ui-repolist.c
index d946f32..325b1ae 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -232,9 +232,6 @@ void cgit_print_repolist()
cgit_print_docstart(&ctx);
cgit_print_pageheader(&ctx);
- if (ctx.cfg.index_header)
- html_include(ctx.cfg.index_header);
-
if(ctx.qry.sort)
sorted = sort_repolist(ctx.qry.sort);
else
--
1.7.9.3
More information about the CGit
mailing list