mirror of
https://git.zx2c4.com/cgit
synced 2025-08-28 21:58:18 +02:00
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>
This commit is contained in:
parent
420712ac25
commit
2101e26fd6
3 changed files with 75 additions and 63 deletions
9
cgit.h
9
cgit.h
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue