diff options
author | Lars Hjemli | 2007-01-17 01:09:51 +0100 |
---|---|---|
committer | Lars Hjemli | 2007-01-17 01:09:51 +0100 |
commit | a69061fdb7380d73715aeb3a0da6e91a24df90e4 (patch) | |
tree | bb514d5bfbab6e3b2904b2633a33175802f084d2 /cgit.h | |
parent | 06c81d6faafff1c80bc9e2302e5b8fea393b775b (diff) | |
download | cgit-a69061fdb7380d73715aeb3a0da6e91a24df90e4.tar.gz cgit-a69061fdb7380d73715aeb3a0da6e91a24df90e4.tar.bz2 cgit-a69061fdb7380d73715aeb3a0da6e91a24df90e4.zip |
Add function cgit_parse_tag()
Teach cgit how to extract author info from a tag.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.h')
-rw-r--r-- | cgit.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -27,6 +27,13 @@ struct commitinfo { | |||
27 | char *msg; | 27 | char *msg; |
28 | }; | 28 | }; |
29 | 29 | ||
30 | struct taginfo { | ||
31 | char *tagger; | ||
32 | char *tagger_email; | ||
33 | int tagger_date; | ||
34 | char *msg; | ||
35 | }; | ||
36 | |||
30 | extern const char cgit_version[]; | 37 | extern const char cgit_version[]; |
31 | 38 | ||
32 | extern char *cgit_root; | 39 | extern char *cgit_root; |
@@ -87,6 +94,7 @@ extern void html_filemode(unsigned short mode); | |||
87 | extern int cgit_read_config(const char *filename, configfn fn); | 94 | extern int cgit_read_config(const char *filename, configfn fn); |
88 | extern int cgit_parse_query(char *txt, configfn fn); | 95 | extern int cgit_parse_query(char *txt, configfn fn); |
89 | extern struct commitinfo *cgit_parse_commit(struct commit *commit); | 96 | extern struct commitinfo *cgit_parse_commit(struct commit *commit); |
97 | extern struct taginfo *cgit_parse_tag(struct tag *tag); | ||
90 | 98 | ||
91 | extern char *cache_safe_filename(const char *unsafe); | 99 | extern char *cache_safe_filename(const char *unsafe); |
92 | extern int cache_lock(struct cacheitem *item); | 100 | extern int cache_lock(struct cacheitem *item); |