aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Lars Hjemli <hjemli@gmail.com>2008-03-25 10:00:09 (JST)
committerGravatar Lars Hjemli <hjemli@gmail.com>2008-03-25 10:00:09 (JST)
commitdc3282f0baa14949439593729a45fbe143e3622c (patch)
tree2eb7eabeb11c4a1c1e132d396ac5c621caf48414
parentc60781d677ee3b2e53b1f3078fef763622e5effe (diff)
downloadcgit-dc3282f0baa14949439593729a45fbe143e3622c.zip
cgit-dc3282f0baa14949439593729a45fbe143e3622c.tar.gz
Remove global and obsolete cgit_cmd
This variable was obsoleted by cmd.c. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r--cgit.c2
-rw-r--r--cgit.h1
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)
181 return 1; 181 return 1;
182 } 182 }
183 183
184 if (!cgit_cmd) { 184 if (!ctx.qry.page) {
185 item->name = xstrdup(fmt("%s/%s/index.%s.html", ctx.cfg.cache_root, 185 item->name = xstrdup(fmt("%s/%s/index.%s.html", ctx.cfg.cache_root,
186 cache_safe_filename(ctx.repo->url), 186 cache_safe_filename(ctx.repo->url),
187 cache_safe_filename(ctx.qry.raw))); 187 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;
189extern struct cgit_repolist cgit_repolist; 189extern struct cgit_repolist cgit_repolist;
190extern struct cgit_context ctx; 190extern struct cgit_context ctx;
191extern const struct cgit_snapshot_format cgit_snapshot_formats[]; 191extern const struct cgit_snapshot_format cgit_snapshot_formats[];
192extern int cgit_cmd;
193 192
194extern struct cgit_repo *cgit_add_repo(const char *url); 193extern struct cgit_repo *cgit_add_repo(const char *url);
195extern struct cgit_repo *cgit_get_repoinfo(const char *url); 194extern struct cgit_repo *cgit_get_repoinfo(const char *url);