author | Lars Hjemli <hjemli@gmail.com> | 2008-11-29 17:39:41 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-11-29 17:39:41 (UTC) |
commit | 0274b57d55a12ed38259757dbfae96b79cfa2e0b (patch) (unidiff) | |
tree | 34c7204f88168f791ef48f603bb8ab66e9df523c /cgit.h | |
parent | 7b5cee65fd9cf31e4f19ce4ff613778cb95512a9 (diff) | |
download | cgit-0274b57d55a12ed38259757dbfae96b79cfa2e0b.zip cgit-0274b57d55a12ed38259757dbfae96b79cfa2e0b.tar.gz cgit-0274b57d55a12ed38259757dbfae96b79cfa2e0b.tar.bz2 |
ui-log: add support for showing the full commit message
Some users prefer to see the full message, so to make these users happy
the new querystring parameter "showmsg" can be used to print the full
commit message per log entry.
A link is provided in the log heading to make this function accessible,
and all links and forms tries to preserve the users preference.
Note: the new link is not displayed on the summary page since the point
of the summary page is to be a summary, but it is still obeyed if specified
manually.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgit.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -92,64 +92,65 @@ struct taginfo { | |||
92 | struct refinfo { | 92 | struct refinfo { |
93 | const char *refname; | 93 | const char *refname; |
94 | struct object *object; | 94 | struct object *object; |
95 | union { | 95 | union { |
96 | struct taginfo *tag; | 96 | struct taginfo *tag; |
97 | struct commitinfo *commit; | 97 | struct commitinfo *commit; |
98 | }; | 98 | }; |
99 | }; | 99 | }; |
100 | 100 | ||
101 | struct reflist { | 101 | struct reflist { |
102 | struct refinfo **refs; | 102 | struct refinfo **refs; |
103 | int alloc; | 103 | int alloc; |
104 | int count; | 104 | int count; |
105 | }; | 105 | }; |
106 | 106 | ||
107 | struct cgit_query { | 107 | struct cgit_query { |
108 | int has_symref; | 108 | int has_symref; |
109 | int has_sha1; | 109 | int has_sha1; |
110 | char *raw; | 110 | char *raw; |
111 | char *repo; | 111 | char *repo; |
112 | char *page; | 112 | char *page; |
113 | char *search; | 113 | char *search; |
114 | char *grep; | 114 | char *grep; |
115 | char *head; | 115 | char *head; |
116 | char *sha1; | 116 | char *sha1; |
117 | char *sha2; | 117 | char *sha2; |
118 | char *path; | 118 | char *path; |
119 | char *name; | 119 | char *name; |
120 | char *mimetype; | 120 | char *mimetype; |
121 | char *url; | 121 | char *url; |
122 | int ofs; | 122 | int ofs; |
123 | int nohead; | 123 | int nohead; |
124 | int showmsg; | ||
124 | }; | 125 | }; |
125 | 126 | ||
126 | struct cgit_config { | 127 | struct cgit_config { |
127 | char *agefile; | 128 | char *agefile; |
128 | char *cache_root; | 129 | char *cache_root; |
129 | char *clone_prefix; | 130 | char *clone_prefix; |
130 | char *css; | 131 | char *css; |
131 | char *favicon; | 132 | char *favicon; |
132 | char *footer; | 133 | char *footer; |
133 | char *index_header; | 134 | char *index_header; |
134 | char *index_info; | 135 | char *index_info; |
135 | char *logo; | 136 | char *logo; |
136 | char *logo_link; | 137 | char *logo_link; |
137 | char *module_link; | 138 | char *module_link; |
138 | char *repo_group; | 139 | char *repo_group; |
139 | char *robots; | 140 | char *robots; |
140 | char *root_title; | 141 | char *root_title; |
141 | char *root_desc; | 142 | char *root_desc; |
142 | char *root_readme; | 143 | char *root_readme; |
143 | char *script_name; | 144 | char *script_name; |
144 | char *virtual_root; | 145 | char *virtual_root; |
145 | int cache_size; | 146 | int cache_size; |
146 | int cache_dynamic_ttl; | 147 | int cache_dynamic_ttl; |
147 | int cache_max_create_time; | 148 | int cache_max_create_time; |
148 | int cache_repo_ttl; | 149 | int cache_repo_ttl; |
149 | int cache_root_ttl; | 150 | int cache_root_ttl; |
150 | int cache_static_ttl; | 151 | int cache_static_ttl; |
151 | int enable_index_links; | 152 | int enable_index_links; |
152 | int enable_log_filecount; | 153 | int enable_log_filecount; |
153 | int enable_log_linecount; | 154 | int enable_log_linecount; |
154 | int local_time; | 155 | int local_time; |
155 | int max_repo_count; | 156 | int max_repo_count; |