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>
Tá an tiomantas seo le fáil i:
Lars Hjemli
2006-12-15 18:17:36 +01:00
tuismitheoir 420712ac25
tiomantas 2101e26fd6
D'athraigh 3 comhad le 75 breiseanna agus 63 scriosta

9
cgit.h
Féach ar an gComhad

@ -15,6 +15,14 @@ struct cacheitem {
int fd;
};
struct commitinfo {
struct commit *commit;
char *author;
char *committer;
char *subject;
char *msg;
};
extern const char cgit_version[];
extern char *cgit_root;
@ -63,6 +71,7 @@ extern void html_link_close(void);
extern int cgit_read_config(const char *filename, configfn fn);
extern int cgit_parse_query(char *txt, configfn fn);
extern struct commitinfo *cgit_parse_commit(struct commit *commit);
extern void cache_prepare(struct cacheitem *item);
extern int cache_lock(struct cacheitem *item);