summaryrefslogtreecommitdiffabout
path: root/cgit.h
authorLars Hjemli <hjemli@gmail.com>2007-01-28 11:17:03 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-01-28 11:17:03 (UTC)
commit7dd50c98d73bf6c579b8ce5893739a2d0ffc00d5 (patch) (unidiff)
tree17f0e21c129723468a1f291faba52580993a39b1 /cgit.h
parentd8b0cca2606f8919208ea68549ff60c6e5fe91bb (diff)
downloadcgit-7dd50c98d73bf6c579b8ce5893739a2d0ffc00d5.zip
cgit-7dd50c98d73bf6c579b8ce5893739a2d0ffc00d5.tar.gz
cgit-7dd50c98d73bf6c579b8ce5893739a2d0ffc00d5.tar.bz2
Add parameter to adjust max message length in log listings
The parameter "max-message-length" can be specified in cgitrc, default value is 60. This affects the log message shown in repo summary and shortlog. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.h') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
index 9b517a7..a3b5385 100644
--- a/cgit.h
+++ b/cgit.h
@@ -7,96 +7,98 @@
7#include <sched.h> 7#include <sched.h>
8 8
9typedef void (*configfn)(const char *name, const char *value); 9typedef void (*configfn)(const char *name, const char *value);
10 10
11struct cacheitem { 11struct cacheitem {
12 char *name; 12 char *name;
13 struct stat st; 13 struct stat st;
14 int ttl; 14 int ttl;
15 int fd; 15 int fd;
16}; 16};
17 17
18struct commitinfo { 18struct commitinfo {
19 struct commit *commit; 19 struct commit *commit;
20 char *author; 20 char *author;
21 char *author_email; 21 char *author_email;
22 unsigned long author_date; 22 unsigned long author_date;
23 char *committer; 23 char *committer;
24 char *committer_email; 24 char *committer_email;
25 unsigned long committer_date; 25 unsigned long committer_date;
26 char *subject; 26 char *subject;
27 char *msg; 27 char *msg;
28}; 28};
29 29
30struct taginfo { 30struct taginfo {
31 char *tagger; 31 char *tagger;
32 char *tagger_email; 32 char *tagger_email;
33 int tagger_date; 33 int tagger_date;
34 char *msg; 34 char *msg;
35}; 35};
36 36
37extern const char cgit_version[]; 37extern const char cgit_version[];
38 38
39extern char *cgit_root; 39extern char *cgit_root;
40extern char *cgit_root_title; 40extern char *cgit_root_title;
41extern char *cgit_css; 41extern char *cgit_css;
42extern char *cgit_logo; 42extern char *cgit_logo;
43extern char *cgit_logo_link; 43extern char *cgit_logo_link;
44extern char *cgit_virtual_root; 44extern char *cgit_virtual_root;
45extern char *cgit_cache_root; 45extern char *cgit_cache_root;
46 46
47extern int cgit_nocache; 47extern int cgit_nocache;
48extern int cgit_max_lock_attempts; 48extern int cgit_max_lock_attempts;
49extern int cgit_cache_root_ttl; 49extern int cgit_cache_root_ttl;
50extern int cgit_cache_repo_ttl; 50extern int cgit_cache_repo_ttl;
51extern int cgit_cache_dynamic_ttl; 51extern int cgit_cache_dynamic_ttl;
52extern int cgit_cache_static_ttl; 52extern int cgit_cache_static_ttl;
53extern int cgit_cache_max_create_time; 53extern int cgit_cache_max_create_time;
54 54
55extern int cgit_max_msg_len;
56
55extern char *cgit_repo_name; 57extern char *cgit_repo_name;
56extern char *cgit_repo_desc; 58extern char *cgit_repo_desc;
57extern char *cgit_repo_owner; 59extern char *cgit_repo_owner;
58 60
59extern int cgit_query_has_symref; 61extern int cgit_query_has_symref;
60extern int cgit_query_has_sha1; 62extern int cgit_query_has_sha1;
61 63
62extern char *cgit_querystring; 64extern char *cgit_querystring;
63extern char *cgit_query_repo; 65extern char *cgit_query_repo;
64extern char *cgit_query_page; 66extern char *cgit_query_page;
65extern char *cgit_query_search; 67extern char *cgit_query_search;
66extern char *cgit_query_head; 68extern char *cgit_query_head;
67extern char *cgit_query_sha1; 69extern char *cgit_query_sha1;
68extern char *cgit_query_sha2; 70extern char *cgit_query_sha2;
69extern char *cgit_query_path; 71extern char *cgit_query_path;
70extern int cgit_query_ofs; 72extern int cgit_query_ofs;
71 73
72extern int htmlfd; 74extern int htmlfd;
73 75
74extern void cgit_global_config_cb(const char *name, const char *value); 76extern void cgit_global_config_cb(const char *name, const char *value);
75extern void cgit_repo_config_cb(const char *name, const char *value); 77extern void cgit_repo_config_cb(const char *name, const char *value);
76extern void cgit_querystring_cb(const char *name, const char *value); 78extern void cgit_querystring_cb(const char *name, const char *value);
77 79
78extern int hextoint(char c); 80extern int hextoint(char c);
79 81
80extern void *cgit_free_commitinfo(struct commitinfo *info); 82extern void *cgit_free_commitinfo(struct commitinfo *info);
81 83
82extern char *fmt(const char *format,...); 84extern char *fmt(const char *format,...);
83 85
84extern void html(const char *txt); 86extern void html(const char *txt);
85extern void htmlf(const char *format,...); 87extern void htmlf(const char *format,...);
86extern void html_txt(char *txt); 88extern void html_txt(char *txt);
87extern void html_ntxt(int len, char *txt); 89extern void html_ntxt(int len, char *txt);
88extern void html_attr(char *txt); 90extern void html_attr(char *txt);
89extern void html_hidden(char *name, char *value); 91extern void html_hidden(char *name, char *value);
90extern void html_link_open(char *url, char *title, char *class); 92extern void html_link_open(char *url, char *title, char *class);
91extern void html_link_close(void); 93extern void html_link_close(void);
92extern void html_filemode(unsigned short mode); 94extern void html_filemode(unsigned short mode);
93 95
94extern int cgit_read_config(const char *filename, configfn fn); 96extern int cgit_read_config(const char *filename, configfn fn);
95extern int cgit_parse_query(char *txt, configfn fn); 97extern int cgit_parse_query(char *txt, configfn fn);
96extern struct commitinfo *cgit_parse_commit(struct commit *commit); 98extern struct commitinfo *cgit_parse_commit(struct commit *commit);
97extern struct taginfo *cgit_parse_tag(struct tag *tag); 99extern struct taginfo *cgit_parse_tag(struct tag *tag);
98 100
99extern char *cache_safe_filename(const char *unsafe); 101extern char *cache_safe_filename(const char *unsafe);
100extern int cache_lock(struct cacheitem *item); 102extern int cache_lock(struct cacheitem *item);
101extern int cache_unlock(struct cacheitem *item); 103extern int cache_unlock(struct cacheitem *item);
102extern int cache_cancel_lock(struct cacheitem *item); 104extern int cache_cancel_lock(struct cacheitem *item);