diff options
author | Lars Hjemli <hjemli@gmail.com> | 2008-03-25 02:00:09 +0100 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-03-25 02:00:09 +0100 |
commit | dc3282f0baa14949439593729a45fbe143e3622c (patch) | |
tree | 2eb7eabeb11c4a1c1e132d396ac5c621caf48414 | |
parent | Makefile: copy the QUIET constructs from the Makefile in git.git (diff) | |
download | cgit-pink-dc3282f0baa14949439593729a45fbe143e3622c.tar.gz cgit-pink-dc3282f0baa14949439593729a45fbe143e3622c.zip |
Remove global and obsolete cgit_cmd
This variable was obsoleted by cmd.c. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | cgit.c | 2 | ||||
-rw-r--r-- | cgit.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/cgit.c b/cgit.c index 3943a0f..f749b6b 100644 --- a/cgit.c +++ b/cgit.c @@ -181,7 +181,7 @@ static int cgit_prepare_cache(struct cacheitem *item) return 1; } - if (!cgit_cmd) { + if (!ctx.qry.page) { item->name = xstrdup(fmt("%s/%s/index.%s.html", ctx.cfg.cache_root, cache_safe_filename(ctx.repo->url), cache_safe_filename(ctx.qry.raw))); diff --git a/cgit.h b/cgit.h index b58676b..e82e9aa 100644 --- a/cgit.h +++ b/cgit.h @@ -189,7 +189,6 @@ extern const char *cgit_version; extern struct cgit_repolist cgit_repolist; extern struct cgit_context ctx; extern const struct cgit_snapshot_format cgit_snapshot_formats[]; -extern int cgit_cmd; extern struct cgit_repo *cgit_add_repo(const char *url); extern struct cgit_repo *cgit_get_repoinfo(const char *url); |