]> gitweb.ps.run Git - ps-cgit/blobdiff - shared.c
Add html_option() function
[ps-cgit] / shared.c
index d815cb1c5b9e47522e160926f80f9b23b7b54bce..7eb2b0e26d8db080159f6ce3ee9fe9251853c6ce 100644 (file)
--- a/shared.c
+++ b/shared.c
@@ -38,6 +38,8 @@ int cgit_cache_dynamic_ttl     =  5;
 int cgit_cache_static_ttl      = -1;
 int cgit_cache_max_create_time =  5;
 int cgit_summary_log           =  0;
+int cgit_summary_tags          =  0;
+int cgit_summary_branches      =  0;
 int cgit_renamelimit           = -1;
 
 int cgit_max_msg_len = 60;
@@ -64,7 +66,7 @@ int htmlfd = 0;
 int cgit_get_cmd_index(const char *cmd)
 {
        static char *cmds[] = {"log", "commit", "diff", "tree", "blob",
-                              "snapshot", "tag", NULL};
+                              "snapshot", "tag", "refs", NULL};
        int i;
 
        for(i = 0; cmds[i]; i++)
@@ -181,6 +183,10 @@ void cgit_global_config_cb(const char *name, const char *value)
                cgit_max_commit_count = atoi(value);
        else if (!strcmp(name, "summary-log"))
                cgit_summary_log = atoi(value);
+       else if (!strcmp(name, "summary-branches"))
+               cgit_summary_branches = atoi(value);
+       else if (!strcmp(name, "summary-tags"))
+               cgit_summary_tags = atoi(value);
        else if (!strcmp(name, "agefile"))
                cgit_agefile = xstrdup(value);
        else if (!strcmp(name, "renamelimit"))