]> git.cameronkatri.com Git - cgit.git/commitdiff
Remove global and obsolete cgit_cmd
authorLars Hjemli <hjemli@gmail.com>
Tue, 25 Mar 2008 01:00:09 +0000 (02:00 +0100)
committerLars Hjemli <hjemli@gmail.com>
Tue, 25 Mar 2008 01:00:09 +0000 (02:00 +0100)
This variable was obsoleted by cmd.c.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
cgit.c
cgit.h

diff --git a/cgit.c b/cgit.c
index 3943a0f8ab3ed143d8492f6ee7ba8b3450ec4ee1..f749b6be181b85fdb9b020ef659f517b289a6b08 100644 (file)
--- 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 b58676b4604b663605f6f8c5b4c4effdd50c2285..e82e9aabc870d1ac91225dd4a5f9dcbda6bb0cc6 100644 (file)
--- 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);