diff options
author | Lars Hjemli <hjemli@gmail.com> | 2007-05-21 05:13:17 (JST) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-05-21 05:13:17 (JST) |
commit | 271ac5a7e6b5b67f54fdd16e8542aa282f1c7140 (patch) | |
tree | d93a0bce06fca8db57ed1a98aa5e2e45199af845 /shared.c | |
parent | dc3ac3f76077c5d612d42e8beb4878e43acfc58a (diff) | |
parent | 7b39144a541ab5be8bcd2748a5be89389bee7192 (diff) | |
download | cgit-271ac5a7e6b5b67f54fdd16e8542aa282f1c7140.zip cgit-271ac5a7e6b5b67f54fdd16e8542aa282f1c7140.tar.gz |
Merge branch 'repogroups'
* repogroups:
Adjust apperance of repogroup headers
Don't highlight repogroup headings
Teach cgit how to group repositories by category
Diffstat (limited to 'shared.c')
-rw-r--r-- | shared.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -21,6 +21,7 @@ char *cgit_module_link = "./?repo=%s&page=commit&id=%s"; | |||
21 | char *cgit_virtual_root = NULL; | 21 | char *cgit_virtual_root = NULL; |
22 | char *cgit_script_name = CGIT_SCRIPT_NAME; | 22 | char *cgit_script_name = CGIT_SCRIPT_NAME; |
23 | char *cgit_cache_root = "/var/cache/cgit"; | 23 | char *cgit_cache_root = "/var/cache/cgit"; |
24 | char *cgit_repo_group = NULL; | ||
24 | 25 | ||
25 | int cgit_nocache = 0; | 26 | int cgit_nocache = 0; |
26 | int cgit_snapshots = 0; | 27 | int cgit_snapshots = 0; |
@@ -99,6 +100,7 @@ struct repoinfo *add_repo(const char *url) | |||
99 | ret->path = NULL; | 100 | ret->path = NULL; |
100 | ret->desc = NULL; | 101 | ret->desc = NULL; |
101 | ret->owner = NULL; | 102 | ret->owner = NULL; |
103 | ret->group = cgit_repo_group; | ||
102 | ret->defbranch = "master"; | 104 | ret->defbranch = "master"; |
103 | ret->snapshots = cgit_snapshots; | 105 | ret->snapshots = cgit_snapshots; |
104 | ret->enable_log_filecount = cgit_enable_log_filecount; | 106 | ret->enable_log_filecount = cgit_enable_log_filecount; |
@@ -160,6 +162,8 @@ void cgit_global_config_cb(const char *name, const char *value) | |||
160 | cgit_max_repodesc_len = atoi(value); | 162 | cgit_max_repodesc_len = atoi(value); |
161 | else if (!strcmp(name, "max-commit-count")) | 163 | else if (!strcmp(name, "max-commit-count")) |
162 | cgit_max_commit_count = atoi(value); | 164 | cgit_max_commit_count = atoi(value); |
165 | else if (!strcmp(name, "repo.group")) | ||
166 | cgit_repo_group = xstrdup(value); | ||
163 | else if (!strcmp(name, "repo.url")) | 167 | else if (!strcmp(name, "repo.url")) |
164 | cgit_repo = add_repo(value); | 168 | cgit_repo = add_repo(value); |
165 | else if (!strcmp(name, "repo.name")) | 169 | else if (!strcmp(name, "repo.name")) |