From mboxrd@z Thu Jan 1 00:00:00 1970 From: jamie.couture at gmail.com (Jamie Couture) Date: Tue, 20 Mar 2012 21:07:53 -0400 Subject: [PATCH 4/8] deprecate option index-info In-Reply-To: <1332292077-9709-1-git-send-email-jamie.couture@gmail.com> References: <1332292077-9709-1-git-send-email-jamie.couture@gmail.com> Message-ID: <1332292077-9709-5-git-send-email-jamie.couture@gmail.com> use root-desc instead of index-info Signed-off-by: Jamie Couture --- 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("\n"); } -- 1.7.9.3