aboutsummaryrefslogtreecommitdiff
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
-rw-r--r--cgit.c4
-rw-r--r--cgit.h2
-rw-r--r--cgitrc.5.txt10
-rw-r--r--shared.c1
-rw-r--r--ui-repolist.c9
-rw-r--r--ui-summary.c4
6 files changed, 2 insertions, 28 deletions
diff --git a/cgit.c b/cgit.c
index cb1149d..b3a98c1 100644
--- a/cgit.c
+++ b/cgit.c
@@ -90,8 +90,6 @@ void config_cb(const char *name, const char *value)
ctx.cfg.cache_static_ttl = atoi(value);
else if (!strcmp(name, "cache-dynamic-ttl"))
ctx.cfg.cache_dynamic_ttl = atoi(value);
- else if (!strcmp(name, "about-filter"))
- ctx.cfg.about_filter = new_filter(value, 0);
else if (!strcmp(name, "commit-filter"))
ctx.cfg.commit_filter = new_filter(value, 0);
else if (!strcmp(name, "embedded"))
@@ -148,8 +146,6 @@ void config_cb(const char *name, const char *value)
ctx.repo->max_stats = cgit_find_stats_period(value, NULL);
else if (ctx.repo && !strcmp(name, "repo.module-link"))
ctx.repo->module_link= xstrdup(value);
- else if (ctx.repo && !strcmp(name, "repo.about-filter"))
- ctx.repo->about_filter = new_filter(value, 0);
else if (ctx.repo && !strcmp(name, "repo.commit-filter"))
ctx.repo->commit_filter = new_filter(value, 0);
else if (ctx.repo && !strcmp(name, "repo.source-filter"))
diff --git a/cgit.h b/cgit.h
index b8f4850..f10ba05 100644
--- a/cgit.h
+++ b/cgit.h
@@ -73,7 +73,6 @@ struct cgit_repo {
int enable_log_linecount;
int max_stats;
time_t mtime;
- struct cgit_filter *about_filter;
struct cgit_filter *commit_filter;
struct cgit_filter *source_filter;
};
@@ -186,7 +185,6 @@ struct cgit_config {
int summary_branches;
int summary_log;
int summary_tags;
- struct cgit_filter *about_filter;
struct cgit_filter *commit_filter;
struct cgit_filter *source_filter;
};
diff --git a/cgitrc.5.txt b/cgitrc.5.txt
index d8e4b97..ffb3e0f 100644
--- a/cgitrc.5.txt
+++ b/cgitrc.5.txt
@@ -16,13 +16,6 @@ lines, and lines starting with '#', are ignored.
GLOBAL SETTINGS
---------------
-about-filter::
- Specifies a command which will be invoked to format the content of
- about pages (both top-level and for each repository). The command will
- get the content of the about-file on its STDIN, and the STDOUT from the
- command will be included verbatim on the about page. Default value:
- none.
-
agefile::
Specifies a path, relative to each repository path, which can be used
to specify the date and time of the youngest commit in the repository.
@@ -241,9 +234,6 @@ virtual-root::
REPOSITORY SETTINGS
-------------------
-repo.about-filter::
- Override the default about-filter. Default value: <about-filter>.
-
repo.clone-url::
A list of space-separated urls which can be used to clone this repo.
Default value: none.
diff --git a/shared.c b/shared.c
index 911a55a..783604b 100644
--- a/shared.c
+++ b/shared.c
@@ -62,7 +62,6 @@ struct cgit_repo *cgit_add_repo(const char *url)
ret->module_link = ctx.cfg.module_link;
ret->readme = NULL;
ret->mtime = -1;
- ret->about_filter = ctx.cfg.about_filter;
ret->commit_filter = ctx.cfg.commit_filter;
ret->source_filter = ctx.cfg.source_filter;
return ret;
diff --git a/ui-repolist.c b/ui-repolist.c
index 25f076f..2c13d50 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -273,11 +273,6 @@ void cgit_print_repolist()
void cgit_print_site_readme()
{
- if (!ctx.cfg.root_readme)
- return;
- if (ctx.cfg.about_filter)
- cgit_open_filter(ctx.cfg.about_filter);
- html_include(ctx.cfg.root_readme);
- if (ctx.cfg.about_filter)
- cgit_close_filter(ctx.cfg.about_filter);
+ if (ctx.cfg.root_readme)
+ html_include(ctx.cfg.root_readme);
}
diff --git a/ui-summary.c b/ui-summary.c
index a2c018e..f2a9b46 100644
--- a/ui-summary.c
+++ b/ui-summary.c
@@ -83,10 +83,6 @@ void cgit_print_repo_readme(char *path)
} else
tmp = ctx.repo->readme;
html("<div id='summary'>");
- if (ctx.repo->about_filter)
- cgit_open_filter(ctx.repo->about_filter);
html_include(tmp);
- if (ctx.repo->about_filter)
- cgit_close_filter(ctx.repo->about_filter);
html("</div>");
}