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:52 -0400 Subject: [PATCH 3/8] deprecate option index-header 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-4-git-send-email-jamie.couture@gmail.com> use root-readme instead of index-header Signed-off-by: Jamie Couture --- 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