[PATCH 4/8] deprecate option index-info
Jamie Couture
jamie.couture at gmail.com
Wed Mar 21 02:07:53 CET 2012
use root-desc instead of index-info
Signed-off-by: Jamie Couture <jamie.couture at gmail.com>
---
cgit.c | 2 --
cgit.h | 1 -
ui-shared.c | 2 --
3 files changed, 5 deletions(-)
diff --git a/cgit.c b/cgit.c
index 17f6be0..1661f63 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-info"))
- ctx.cfg.index_info = xstrdup(value);
else if (!strcmp(name, "logo-link"))
ctx.cfg.logo_link = xstrdup(value);
else if (!strcmp(name, "module-link"))
diff --git a/cgit.h b/cgit.h
index a8ec5ca..da86315 100644
--- a/cgit.h
+++ b/cgit.h
@@ -173,7 +173,6 @@ struct cgit_config {
char *footer;
char *head_include;
char *header;
- char *index_info;
char *logo;
char *logo_link;
char *mimetype_file;
diff --git a/ui-shared.c b/ui-shared.c
index 43166af..ecabbe5 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -867,8 +867,6 @@ static void print_header(struct cgit_context *ctx)
} else {
if (ctx->cfg.root_desc)
html_txt(ctx->cfg.root_desc);
- else if (ctx->cfg.index_info)
- html_include(ctx->cfg.index_info);
}
html("</td></tr></table>\n");
}
--
1.7.9.3
More information about the CGit
mailing list