author | Lars Hjemli <hjemli@gmail.com> | 2007-05-18 20:48:22 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-05-18 20:51:18 (UTC) |
commit | 5877c49f68b1e1bef94b4867f22c336f0e1605b6 (patch) (unidiff) | |
tree | 4e628096d9f189b7ef5ff9dcda40a07a5f7b21d0 /cgit.h | |
parent | 08cc2e5f0e24773dad81d38bd6b689e36afe9dda (diff) | |
download | cgit-5877c49f68b1e1bef94b4867f22c336f0e1605b6.zip cgit-5877c49f68b1e1bef94b4867f22c336f0e1605b6.tar.gz cgit-5877c49f68b1e1bef94b4867f22c336f0e1605b6.tar.bz2 |
Teach cgit how to group repositories by category
The new parameter 'repo.group' is used to set the repository group
for the following repositores. Whenever this parameter changes value,
a subheading is generated in the index page (printing the current value
of repo.group).
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgit.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -33,12 +33,13 @@ struct repoinfo { | |||
33 | char *url; | 33 | char *url; |
34 | char *name; | 34 | char *name; |
35 | char *path; | 35 | char *path; |
36 | char *desc; | 36 | char *desc; |
37 | char *owner; | 37 | char *owner; |
38 | char *defbranch; | 38 | char *defbranch; |
39 | char *group; | ||
39 | char *module_link; | 40 | char *module_link; |
40 | int snapshots; | 41 | int snapshots; |
41 | int enable_log_filecount; | 42 | int enable_log_filecount; |
42 | int enable_log_linecount; | 43 | int enable_log_linecount; |
43 | }; | 44 | }; |
44 | 45 | ||
@@ -77,12 +78,13 @@ extern char *cgit_css; | |||
77 | extern char *cgit_logo; | 78 | extern char *cgit_logo; |
78 | extern char *cgit_logo_link; | 79 | extern char *cgit_logo_link; |
79 | extern char *cgit_module_link; | 80 | extern char *cgit_module_link; |
80 | extern char *cgit_virtual_root; | 81 | extern char *cgit_virtual_root; |
81 | extern char *cgit_script_name; | 82 | extern char *cgit_script_name; |
82 | extern char *cgit_cache_root; | 83 | extern char *cgit_cache_root; |
84 | extern char *cgit_repo_group; | ||
83 | 85 | ||
84 | extern int cgit_nocache; | 86 | extern int cgit_nocache; |
85 | extern int cgit_snapshots; | 87 | extern int cgit_snapshots; |
86 | extern int cgit_enable_log_filecount; | 88 | extern int cgit_enable_log_filecount; |
87 | extern int cgit_enable_log_linecount; | 89 | extern int cgit_enable_log_linecount; |
88 | extern int cgit_max_lock_attempts; | 90 | extern int cgit_max_lock_attempts; |