mirror of
https://git.zx2c4.com/cgit
synced 2025-08-03 01:25:34 +02:00
Add function cgit_parse_tag()
Teach cgit how to extract author info from a tag. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
06c81d6faa
commit
a69061fdb7
2 changed files with 55 additions and 0 deletions
8
cgit.h
8
cgit.h
|
@ -27,6 +27,13 @@ struct commitinfo {
|
|||
char *msg;
|
||||
};
|
||||
|
||||
struct taginfo {
|
||||
char *tagger;
|
||||
char *tagger_email;
|
||||
int tagger_date;
|
||||
char *msg;
|
||||
};
|
||||
|
||||
extern const char cgit_version[];
|
||||
|
||||
extern char *cgit_root;
|
||||
|
@ -87,6 +94,7 @@ extern void html_filemode(unsigned short mode);
|
|||
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 struct taginfo *cgit_parse_tag(struct tag *tag);
|
||||
|
||||
extern char *cache_safe_filename(const char *unsafe);
|
||||
extern int cache_lock(struct cacheitem *item);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue