X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/420712ac2531f65a2b94d5ec6d8e03de6942331e..2101e26fd68f816e77de62b93df4c32fd1110d0c:/cgit.h diff --git a/cgit.h b/cgit.h index 82e8681..268db53 100644 --- a/cgit.h +++ b/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);