]> gitweb.ps.run Git - ps-cgit/blobdiff - shared.c
Use html_filemode in ui-tree.c
[ps-cgit] / shared.c
index 714959758e676970ece65122d7ff7786a601c50e..b576df8496f3cdbc1767ae68b858ccf753896521 100644 (file)
--- a/shared.c
+++ b/shared.c
@@ -57,6 +57,8 @@ void cgit_global_config_cb(const char *name, const char *value)
                cgit_virtual_root = xstrdup(value);
        else if (!strcmp(name, "nocache"))
                cgit_nocache = atoi(value);
+       else if (!strcmp(name, "cache-root"))
+               cgit_cache_root = xstrdup(value);
 }
 
 void cgit_repo_config_cb(const char *name, const char *value)
@@ -86,3 +88,13 @@ void cgit_querystring_cb(const char *name, const char *value)
        }
 }
 
+void *cgit_free_commitinfo(struct commitinfo *info)
+{
+       free(info->author);
+       free(info->author_email);
+       free(info->committer);
+       free(info->committer_email);
+       free(info->subject);
+       free(info);
+       return NULL;
+}