aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.h
diff options
context:
space:
mode:
authorLars Hjemli2006-12-15 18:17:36 +0100
committerLars Hjemli2006-12-15 18:17:36 +0100
commit2101e26fd68f816e77de62b93df4c32fd1110d0c (patch)
treed70d28734c4fbfd0a4e4a40bcfd445eb50dc1666 /cgit.h
parent420712ac2531f65a2b94d5ec6d8e03de6942331e (diff)
downloadcgit-2101e26fd68f816e77de62b93df4c32fd1110d0c.tar.gz
cgit-2101e26fd68f816e77de62b93df4c32fd1110d0c.tar.bz2
cgit-2101e26fd68f816e77de62b93df4c32fd1110d0c.zip
Add a common commit parser
Make a better commit parser, replacing the ugly one in ui-log.c Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.h')
-rw-r--r--cgit.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
index 82e8681..268db53 100644
--- a/cgit.h
+++ b/cgit.h
@@ -15,6 +15,14 @@ struct cacheitem {
15 int fd; 15 int fd;
16}; 16};
17 17
18struct commitinfo {
19 struct commit *commit;
20 char *author;
21 char *committer;
22 char *subject;
23 char *msg;
24};
25
18extern const char cgit_version[]; 26extern const char cgit_version[];
19 27
20extern char *cgit_root; 28extern char *cgit_root;
@@ -63,6 +71,7 @@ extern void html_link_close(void);
63 71
64extern int cgit_read_config(const char *filename, configfn fn); 72extern int cgit_read_config(const char *filename, configfn fn);
65extern int cgit_parse_query(char *txt, configfn fn); 73extern int cgit_parse_query(char *txt, configfn fn);
74extern struct commitinfo *cgit_parse_commit(struct commit *commit);
66 75
67extern void cache_prepare(struct cacheitem *item); 76extern void cache_prepare(struct cacheitem *item);
68extern int cache_lock(struct cacheitem *item); 77extern int cache_lock(struct cacheitem *item);